Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #113575 > unrolled thread

Run this under Windows and Linux

Started byBonita Montero <Bonita.Montero@gmail.com>
First post2023-10-30 08:12 +0100
Last post2023-11-05 15:30 +0000
Articles 11 on this page of 151 — 7 participants

Back to article view | Back to comp.lang.c++


Contents

  Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-10-30 08:12 +0100
    Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-10-30 13:08 -0700
      Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-10-31 13:25 +0100
        Re: Run this under Windows and Linux Branimir Maksimovic <branimir.maksimovic@icloud.com> - 2023-10-31 17:37 +0000
        Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-10-31 13:59 -0700
          Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-01 13:00 +0100
            Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-01 19:24 +0100
              Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-01 19:28 +0100
                Re: Run this under Windows and Linux scott@slp53.sl.home (Scott Lurndal) - 2023-11-01 19:04 +0000
                  Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-01 20:11 +0100
                    Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-01 13:02 -0700
                      Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-03 13:36 +0100
                        Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-03 15:13 -0700
                          Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-04 00:19 -0700
                            Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-04 10:13 +0100
                            Re: Run this under Windows and Linux scott@slp53.sl.home (Scott Lurndal) - 2023-11-04 15:53 +0000
                              Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-04 16:58 +0100
                              Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-04 11:44 -0700
                                Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-09 01:05 -0800
                          Re: Run this under Windows and Linux scott@slp53.sl.home (Scott Lurndal) - 2023-11-04 16:03 +0000
                            Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-04 11:45 -0700
                              Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-04 11:48 -0700
                            Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-04 19:58 +0100
                              Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-04 12:14 -0700
              Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-01 13:01 -0700
                Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-02 07:10 +0100
              Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-01 20:50 +0000
                Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-01 14:05 -0700
                Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-01 14:07 -0700
              Re: Run this under Windows and Linux Michael S <already5chosen@yahoo.com> - 2023-11-03 16:04 +0200
                Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-03 15:24 +0100
                  Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-03 15:14 -0700
            Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-01 12:58 -0700
              Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-02 07:10 +0100
                Re: Run this under Windows and Linux scott@slp53.sl.home (Scott Lurndal) - 2023-11-02 14:58 +0000
                  Re: Run this under Windows and Linux David Brown <david.brown@hesbynett.no> - 2023-11-02 16:34 +0100
                    Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-02 16:46 +0100
                    Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-02 13:12 -0700
                      Re: Run this under Windows and Linux David Brown <david.brown@hesbynett.no> - 2023-11-03 10:13 +0100
                        Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-03 15:16 -0700
                        Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-08 20:33 -0800
                  Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-02 16:44 +0100
                    Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-02 16:02 +0000
                      Re: Run this under Windows and Linux Michael S <already5chosen@yahoo.com> - 2023-11-03 16:10 +0200
                        Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-04 21:05 -0700
                          Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-05 04:23 +0000
                Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-02 15:37 +0000
                  Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-02 16:48 +0100
                    Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-02 16:00 +0000
                      Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-02 17:26 +0100
                        Re: Run this under Windows and Linux David Brown <david.brown@hesbynett.no> - 2023-11-03 10:15 +0100
                          Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-03 11:55 +0100
                            Re: Run this under Windows and Linux David Brown <david.brown@hesbynett.no> - 2023-11-03 14:41 +0100
                              Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-03 15:22 +0100
                                Re: Run this under Windows and Linux David Brown <david.brown@hesbynett.no> - 2023-11-03 16:35 +0100
                                  Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-03 16:49 +0100
                                    Re: Run this under Windows and Linux David Brown <david.brown@hesbynett.no> - 2023-11-03 18:02 +0100
                                      Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-03 18:08 +0100
                                        Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-03 17:29 +0000
                                        Re: Run this under Windows and Linux scott@slp53.sl.home (Scott Lurndal) - 2023-11-03 18:52 +0000
                                        Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-03 15:21 -0700
                                        Re: Run this under Windows and Linux David Brown <david.brown@hesbynett.no> - 2023-11-04 17:22 +0100
                                          Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-04 17:35 +0100
                                            Re: Run this under Windows and Linux David Brown <david.brown@hesbynett.no> - 2023-11-04 17:56 +0100
                                              Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-04 18:18 +0100
                                      Re: Run this under Windows and Linux scott@slp53.sl.home (Scott Lurndal) - 2023-11-03 18:51 +0000
                                      Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-03 15:20 -0700
                                    Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-03 17:28 +0000
                                      Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-03 18:30 +0100
                                        Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-03 18:03 +0000
                                          Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-03 19:07 +0100
                                            Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-03 19:08 +0100
                                              Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-03 15:26 -0700
                                        Re: Run this under Windows and Linux scott@slp53.sl.home (Scott Lurndal) - 2023-11-03 18:54 +0000
                                          Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-03 20:25 +0100
                                            Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-03 20:56 +0000
                                              Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-04 10:15 +0100
                                                Re: Run this under Windows and Linux scott@slp53.sl.home (Scott Lurndal) - 2023-11-04 16:05 +0000
                                                  Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-04 17:35 +0100
                                                Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-04 18:44 +0000
                                    Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-03 15:19 -0700
                                      Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-04 10:16 +0100
                                      Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-04 10:25 +0100
                                        Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-04 12:42 -0700
                                          Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-05 05:33 +0100
                                          Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-05 05:35 +0100
                                            Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-05 12:11 -0800
                                              Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-05 22:54 +0000
                                                Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-05 18:49 -0800
                                                  Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-06 02:58 +0000
                            Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-03 15:32 +0000
                              Re: Run this under Windows and Linux David Brown <david.brown@hesbynett.no> - 2023-11-03 18:05 +0100
                            Re: Run this under Windows and Linux scott@slp53.sl.home (Scott Lurndal) - 2023-11-03 16:53 +0000
                              Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-03 18:09 +0100
                                Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-03 15:25 -0700
                                  Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-04 10:17 +0100
                                    Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-04 12:44 -0700
                                      Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-05 05:36 +0100
                                        Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-05 17:25 +0000
                                          Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-05 18:55 +0100
                                            Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-05 12:12 -0800
                                              Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-05 12:18 -0800
                                                Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-05 22:55 +0000
                                                  Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-05 18:53 -0800
                                              Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-06 04:44 +0100
                                                Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-05 20:10 -0800
                                                  Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-06 05:16 +0100
                                                    Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-08 20:44 -0800
                                                Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-06 04:22 +0000
                                                  Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-06 05:37 +0100
                                                    Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-05 21:01 -0800
                                                  Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-05 21:00 -0800
                                                    Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-06 09:36 +0100
                                                      Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-06 12:11 -0800
                                                        Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-06 23:52 +0100
                                                          Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-07 11:51 -0800
                                              Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-06 05:15 +0100
                                                Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-05 21:02 -0800
                                                  Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-05 21:05 -0800
                                                    Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-06 09:37 +0100
                                                      Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-06 12:13 -0800
                                                        Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-06 23:53 +0100
                                                          Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-06 23:00 +0000
                                                            Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-07 05:36 +0100
                                                              Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-07 05:29 +0000
                                                                Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-07 09:38 +0100
                                                                  Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-07 11:53 -0800
                                                                    Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-09 05:49 +0100
                                                                      Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-08 20:52 -0800
                                                                        Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-09 05:54 +0100
                                                                          Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-08 20:57 -0800
                                                                  Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-08 20:45 -0800
                                            Re: Run this under Windows and Linux Kaz Kylheku <864-117-4973@kylheku.com> - 2023-11-05 20:53 +0000
                                              Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-06 12:13 -0800
                              Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-03 15:24 -0700
                            Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-03 15:18 -0700
                              Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-04 10:18 +0100
                                Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-04 12:45 -0700
                      Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-02 13:18 -0700
          Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-01 13:21 +0100
            Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-01 12:59 -0700
              Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-04 00:01 -0700
              Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-04 10:19 +0100
                Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-04 10:53 +0100
                Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-04 12:51 -0700
                  Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-04 12:53 -0700
                    Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-04 12:54 -0700
                      Re: Run this under Windows and Linux "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-11-05 12:15 -0800
    Re: Run this under Windows and Linux Branimir Maksimovic <branimir.maksimovic@icloud.com> - 2023-11-03 21:18 +0000
      Re: Run this under Windows and Linux Bonita Montero <Bonita.Montero@gmail.com> - 2023-11-04 10:29 +0100
        Re: Run this under Windows and Linux Branimir Maksimovic <branimir.maksimovic@icloud.com> - 2023-11-05 15:30 +0000

Page 8 of 8 — ← Prev page 1 2 3 4 5 6 7 [8]


#117472

From"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Date2023-11-01 12:59 -0700
Message-ID<uhuaml$1omhf$5@dont-email.me>
In reply to#117459
On 11/1/2023 5:21 AM, Bonita Montero wrote:
> Am 31.10.2023 um 21:59 schrieb Chris M. Thomasson:
> 
>> Why do you say that?
> 
> The article you mentioned is also discussed here:
> https://stackoverflow.com/questions/1635416/are-benaphores-worth-implementing-on-modern-oss
> The first replier says the same I said: its a normal mutex.
> 

Huh? The benaphore is a semaphore! So, both of you are totally wrong 
here. Think about it...

[toc] | [prev] | [next] | [standalone]


#117543

From"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Date2023-11-04 00:01 -0700
Message-ID<ui4q7n$38rsj$2@dont-email.me>
In reply to#117472
On 11/1/2023 12:59 PM, Chris M. Thomasson wrote:
> On 11/1/2023 5:21 AM, Bonita Montero wrote:
>> Am 31.10.2023 um 21:59 schrieb Chris M. Thomasson:
>>
>>> Why do you say that?
>>
>> The article you mentioned is also discussed here:
>> https://stackoverflow.com/questions/1635416/are-benaphores-worth-implementing-on-modern-oss
>> The first replier says the same I said: its a normal mutex.
>>
> 
> Huh? The benaphore is a semaphore! So, both of you are totally wrong 
> here. Think about it...

Your theme song?

https://youtu.be/FE-hBbBBGBs

[toc] | [prev] | [next] | [standalone]


#117551

FromBonita Montero <Bonita.Montero@gmail.com>
Date2023-11-04 10:19 +0100
Message-ID<ui52bd$3a606$6@dont-email.me>
In reply to#117472
Am 01.11.2023 um 20:59 schrieb Chris M. Thomasson:

> Huh? The benaphore is a semaphore! So, both of you are totally wrong 
> here. Think about it...

Google for "benaphore mutex" and you'll find several refernces that a
benaphore is a mutex, including the two articles I've referred so far.

[toc] | [prev] | [next] | [standalone]


#117554

FromBonita Montero <Bonita.Montero@gmail.com>
Date2023-11-04 10:53 +0100
Message-ID<ui54be$3ai3f$1@dont-email.me>
In reply to#117551
Am 04.11.2023 um 10:19 schrieb Bonita Montero:

> Google for "benaphore mutex" ...
Or rather "benaphore mutex -semaphore".

[toc] | [prev] | [next] | [standalone]


#117573

From"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Date2023-11-04 12:51 -0700
Message-ID<ui67bq$3haup$4@dont-email.me>
In reply to#117551
On 11/4/2023 2:19 AM, Bonita Montero wrote:
> Am 01.11.2023 um 20:59 schrieb Chris M. Thomasson:
> 
>> Huh? The benaphore is a semaphore! So, both of you are totally wrong 
>> here. Think about it...
> 
> Google for "benaphore mutex" and you'll find several refernces that a
> benaphore is a mutex, including the two articles I've referred so far.
> 

MORON!!!

[toc] | [prev] | [next] | [standalone]


#117574

From"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Date2023-11-04 12:53 -0700
Message-ID<ui67fi$3haup$5@dont-email.me>
In reply to#117573
On 11/4/2023 12:51 PM, Chris M. Thomasson wrote:
> On 11/4/2023 2:19 AM, Bonita Montero wrote:
>> Am 01.11.2023 um 20:59 schrieb Chris M. Thomasson:
>>
>>> Huh? The benaphore is a semaphore! So, both of you are totally wrong 
>>> here. Think about it...
>>
>> Google for "benaphore mutex" and you'll find several refernces that a
>> benaphore is a mutex, including the two articles I've referred so far.
>>
> 
> MORON!!!

The benaphore is a semaphore using a bakery algorithm. You are 
completely confused and incoherently flailing around.

[toc] | [prev] | [next] | [standalone]


#117575

From"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Date2023-11-04 12:54 -0700
Message-ID<ui67ia$3hgpl$1@dont-email.me>
In reply to#117574
On 11/4/2023 12:53 PM, Chris M. Thomasson wrote:
> On 11/4/2023 12:51 PM, Chris M. Thomasson wrote:
>> On 11/4/2023 2:19 AM, Bonita Montero wrote:
>>> Am 01.11.2023 um 20:59 schrieb Chris M. Thomasson:
>>>
>>>> Huh? The benaphore is a semaphore! So, both of you are totally wrong 
>>>> here. Think about it...
>>>
>>> Google for "benaphore mutex" and you'll find several refernces that a
>>> benaphore is a mutex, including the two articles I've referred so far.
>>>
>>
>> MORON!!!
> 
> The benaphore is a semaphore using a bakery algorithm. You are 
> completely confused and incoherently flailing around.

https://vorbrodt.blog/2019/02/05/fast-semaphore

[toc] | [prev] | [next] | [standalone]


#117602

From"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Date2023-11-05 12:15 -0800
Message-ID<ui8t5e$4c78$3@dont-email.me>
In reply to#117575
On 11/4/2023 12:54 PM, Chris M. Thomasson wrote:
> On 11/4/2023 12:53 PM, Chris M. Thomasson wrote:
>> On 11/4/2023 12:51 PM, Chris M. Thomasson wrote:
>>> On 11/4/2023 2:19 AM, Bonita Montero wrote:
>>>> Am 01.11.2023 um 20:59 schrieb Chris M. Thomasson:
>>>>
>>>>> Huh? The benaphore is a semaphore! So, both of you are totally 
>>>>> wrong here. Think about it...
>>>>
>>>> Google for "benaphore mutex" and you'll find several refernces that a
>>>> benaphore is a mutex, including the two articles I've referred so far.
>>>>
>>>
>>> MORON!!!
>>
>> The benaphore is a semaphore using a bakery algorithm. You are 
>> completely confused and incoherently flailing around.
> 
> https://vorbrodt.blog/2019/02/05/fast-semaphore

Fwiw, Joe Seigh created a really interesting read/write ticket based 
bakery algorithm a long time ago back in comp.programming.threads. It 
was a spinlock, but the logic was rather elegant. Humm... I wonder if I 
can find that old thread!

[toc] | [prev] | [next] | [standalone]


#117532

FromBranimir Maksimovic <branimir.maksimovic@icloud.com>
Date2023-11-03 21:18 +0000
Message-ID<7td1N.116068$MJ59.17727@fx10.iad>
In reply to#113575
On 2023-10-30, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> MSVC's C++20 semaphore class spins to acquire the semaphore;
> g++'s / libstdc++'s doesn't spin. I wote a little test program
> to rest how long it takes to flip to another thread and back
> with a binary_semaphore (always a counting_semaphore<1>).
> Here it is:
>
> #if defined(_WIN32)
> 	#include <Windows.h>
> #elif defined(__unix__)
> 	#include <sys/resource.h>
> #endif
> #include <iostream>
> #include <thread>
> #include <semaphore>
> #include <atomic>
> #include <utility>
> #include <vector>
>
> using namespace std;
>
> int main()
> {
> 	binary_semaphore
> 		semA( 1 ),
> 		semB( 0 );
> 	auto getTimes = []() -> pair<int64_t, int64_t>
> 	{
> #if defined(_WIN32)
> 		FILETIME ftDummy, ftKernel, ftUser;
> 		GetThreadTimes( GetCurrentThread(), &ftDummy, &ftDummy, &ftKernel, 
> &ftUser );
> 		auto compose = []( FILETIME &ft ) { return 
> ((uint64_t)ft.dwHighDateTime << 32 | ft.dwLowDateTime) * 100; };
> 		return { compose( ftKernel ), compose( ftUser ) };
> #elif defined(__unix__)
> 		rusage ru;
> 		getrusage( RUSAGE_THREAD, &ru );
> 		auto compose = []( timeval &tv ) -> int64_t { return 
> (uint64_t)tv.tv_sec * 1'000'000'000u + (uint32_t)tv.tv_usec * 1'000u; };
> 		return { compose( ru.ru_stime ), compose( ru.ru_utime ) };
> #endif
> 	};
> 	atomic_int64_t
> 		aFlips( 0 ),
> 		aKernel( 0 ),
> 		aUser( 0 );
> 	atomic_bool stop( false );
> 	auto thr = [&]( binary_semaphore &semMe, binary_semaphore &semYou )
> 	{
> 		auto tBegin = getTimes();
> 		uint64_t f = 0;
> 		for( ; !stop.load( memory_order_relaxed ); ++f )
> 			semMe.acquire(),
> 			semYou.release();
> 		auto tEnd = getTimes();
> 		aFlips += f;
> 		aKernel += tEnd.first - tBegin.first;
> 		aUser += tEnd.second + tBegin.second;
> 	};
> 	vector<jthread> threads;
> 	threads.emplace_back( thr, ref( semA ), ref( semB ) );
> 	threads.emplace_back( thr, ref( semB ), ref( semA ) );
> 	this_thread::sleep_for( 1s );
> 	stop = true;
> 	threads.resize( 0 );
> 	double
> 		kernel = (double)aKernel,
> 		user = (double)aUser,
> 		total = kernel + user,
> 		flips = (double)aFlips;
> 	cout << user / total * 100.0 << "%" << endl;
> 	cout << total / flips << "ns" << endl;
> }
>
> Results unter Windows 11 on a AMD Ryzen 7950X (Zen4):
> 	100%
> 	89.3523ns
> So 100% of the CPU time is spent in user space and a flip back
> and forth takes 90ns.
> Results unter Ubuntu 20.04 on a AMD Threadripper 3990X (Zen2):
> 	6.56209%
> 	476.213ns
> So under Linux most of the time is spent in kernel space and I think
> about 0.5us, thats about 2000 clock cycles with full boost, isn't bad
> for an explicit kernel call.
> I think this userland spinning isn't really necessary because you
> normally a usual mutex and a condition_variable fits for everything
> you need. An explicit semaphore is rather needed if you build your
> own synchronization primitves on top of the semaphore. And if you do
> that you usually have your own spinning with that and you don't need
> further spinning if you want go into kernel mode. But this additional
> spinning actually doesn't really hurt since the kernel call itself
> costs a lot more.
>
maxa@Branimirs-MacBook-Air News % g++ -O2 run.cpp -o run -std=c++20
run.cpp:37:2: warning: non-void lambda does not return a value [-Wreturn-type]
        };
        ^
1 warning generated.
bmaxa@Branimirs-MacBook-Air News % ./run
libc++abi: terminating
zsh: abort      ./run

-- 

7-77-777, Evil Sinner!
https://www.linkedin.com/in/branimir-maksimovic-6762bbaa/

[toc] | [prev] | [next] | [standalone]


#117553

FromBonita Montero <Bonita.Montero@gmail.com>
Date2023-11-04 10:29 +0100
Message-ID<ui52ta$3aaiu$1@dont-email.me>
In reply to#117532
Maybe I missed some header which is implicitly included with me.
The code compiles fine with g++, clang++, clang-cl and MSVC on
my PC.

Am 03.11.2023 um 22:18 schrieb Branimir Maksimovic:
> On 2023-10-30, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> MSVC's C++20 semaphore class spins to acquire the semaphore;
>> g++'s / libstdc++'s doesn't spin. I wote a little test program
>> to rest how long it takes to flip to another thread and back
>> with a binary_semaphore (always a counting_semaphore<1>).
>> Here it is:
>>
>> #if defined(_WIN32)
>> 	#include <Windows.h>
>> #elif defined(__unix__)
>> 	#include <sys/resource.h>
>> #endif
>> #include <iostream>
>> #include <thread>
>> #include <semaphore>
>> #include <atomic>
>> #include <utility>
>> #include <vector>
>>
>> using namespace std;
>>
>> int main()
>> {
>> 	binary_semaphore
>> 		semA( 1 ),
>> 		semB( 0 );
>> 	auto getTimes = []() -> pair<int64_t, int64_t>
>> 	{
>> #if defined(_WIN32)
>> 		FILETIME ftDummy, ftKernel, ftUser;
>> 		GetThreadTimes( GetCurrentThread(), &ftDummy, &ftDummy, &ftKernel,
>> &ftUser );
>> 		auto compose = []( FILETIME &ft ) { return
>> ((uint64_t)ft.dwHighDateTime << 32 | ft.dwLowDateTime) * 100; };
>> 		return { compose( ftKernel ), compose( ftUser ) };
>> #elif defined(__unix__)
>> 		rusage ru;
>> 		getrusage( RUSAGE_THREAD, &ru );
>> 		auto compose = []( timeval &tv ) -> int64_t { return
>> (uint64_t)tv.tv_sec * 1'000'000'000u + (uint32_t)tv.tv_usec * 1'000u; };
>> 		return { compose( ru.ru_stime ), compose( ru.ru_utime ) };
>> #endif
>> 	};
>> 	atomic_int64_t
>> 		aFlips( 0 ),
>> 		aKernel( 0 ),
>> 		aUser( 0 );
>> 	atomic_bool stop( false );
>> 	auto thr = [&]( binary_semaphore &semMe, binary_semaphore &semYou )
>> 	{
>> 		auto tBegin = getTimes();
>> 		uint64_t f = 0;
>> 		for( ; !stop.load( memory_order_relaxed ); ++f )
>> 			semMe.acquire(),
>> 			semYou.release();
>> 		auto tEnd = getTimes();
>> 		aFlips += f;
>> 		aKernel += tEnd.first - tBegin.first;
>> 		aUser += tEnd.second + tBegin.second;
>> 	};
>> 	vector<jthread> threads;
>> 	threads.emplace_back( thr, ref( semA ), ref( semB ) );
>> 	threads.emplace_back( thr, ref( semB ), ref( semA ) );
>> 	this_thread::sleep_for( 1s );
>> 	stop = true;
>> 	threads.resize( 0 );
>> 	double
>> 		kernel = (double)aKernel,
>> 		user = (double)aUser,
>> 		total = kernel + user,
>> 		flips = (double)aFlips;
>> 	cout << user / total * 100.0 << "%" << endl;
>> 	cout << total / flips << "ns" << endl;
>> }
>>
>> Results unter Windows 11 on a AMD Ryzen 7950X (Zen4):
>> 	100%
>> 	89.3523ns
>> So 100% of the CPU time is spent in user space and a flip back
>> and forth takes 90ns.
>> Results unter Ubuntu 20.04 on a AMD Threadripper 3990X (Zen2):
>> 	6.56209%
>> 	476.213ns
>> So under Linux most of the time is spent in kernel space and I think
>> about 0.5us, thats about 2000 clock cycles with full boost, isn't bad
>> for an explicit kernel call.
>> I think this userland spinning isn't really necessary because you
>> normally a usual mutex and a condition_variable fits for everything
>> you need. An explicit semaphore is rather needed if you build your
>> own synchronization primitves on top of the semaphore. And if you do
>> that you usually have your own spinning with that and you don't need
>> further spinning if you want go into kernel mode. But this additional
>> spinning actually doesn't really hurt since the kernel call itself
>> costs a lot more.
>>
> maxa@Branimirs-MacBook-Air News % g++ -O2 run.cpp -o run -std=c++20
> run.cpp:37:2: warning: non-void lambda does not return a value [-Wreturn-type]
>          };
>          ^
> 1 warning generated.
> bmaxa@Branimirs-MacBook-Air News % ./run
> libc++abi: terminating
> zsh: abort      ./run
> 

[toc] | [prev] | [next] | [standalone]


#117595

FromBranimir Maksimovic <branimir.maksimovic@icloud.com>
Date2023-11-05 15:30 +0000
Message-ID<wyO1N.161687$HwD9.94880@fx11.iad>
In reply to#117553
On 2023-11-04, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> Maybe I missed some header which is implicitly included with me.
> The code compiles fine with g++, clang++, clang-cl and MSVC on
> my PC.

It compiles, but aborts when running...

>> maxa@Branimirs-MacBook-Air News % g++ -O2 run.cpp -o run -std=c++20
>> run.cpp:37:2: warning: non-void lambda does not return a value [-Wreturn-type]
>>          };
>>          ^
>> 1 warning generated.
>> bmaxa@Branimirs-MacBook-Air News % ./run
>> libc++abi: terminating
>> zsh: abort      ./run
>> 
>


-- 

7-77-777, Evil Sinner!
https://www.linkedin.com/in/branimir-maksimovic-6762bbaa/

[toc] | [prev] | [standalone]


Page 8 of 8 — ← Prev page 1 2 3 4 5 6 7 [8]

Back to top | Article view | comp.lang.c++


csiph-web