[fpc-pascal] Counting semaphore for free pascal

Serguei TARASSOV serge at arbinada.com
Wed Jul 29 16:22:17 CEST 2015


On 29/07/2015 15:44, fpc-pascal-request at lists.freepascal.org wrote:
> Date: Wed, 29 Jul 2015 15:16:13 +0200
> From: Sven Barth<pascaldragon at googlemail.com>
> To: FPC-Pascal users discussions<fpc-pascal at lists.freepascal.org>
> Subject: Re: [fpc-pascal] Counting semaphore for free pascal
> Message-ID:
> 	<CAFMUeB_-Zv6bmyt=yQ11jmWY=hBDaHL4iSyRiG0v6GjevvrHTw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
>
> Semaphores don't necessarily need to be cross process.
Yes, it is not necessary.
As I wrote, some frameworks (i.e. .NET) provide classes like "threading 
semaphore".
"By default" since 1960s semaphores are designed and used to synchronize 
the processes.
When the semaphore's scope is limited by threads it is documented as 
"threading semaphore" in most cases.

Regards,
Serguei



More information about the fpc-pascal mailing list