<p>Am 18.09.2014 11:03 schrieb "Michael Schnell" <<a href="mailto:mschnell@lumino.de">mschnell@lumino.de</a>>:<br>
><br>
> On 09/18/2014 10:32 AM, Xiangrong Fang wrote:<br>
>><br>
>><br>
>><br>
>><br>
>> I don't quite understand the logic or difference between critical section <br>
>> <br>
>> and events.<br>
><br>
><br>
> They have nothing in common.<br>
><br>
> TCriticalSection is a Semaphore (see Wikipedia)<br>
><br>
> An event is a callback procedure -> <a href="https://en.wikipedia.org/wiki/Callback_%28computer_programming%29">https://en.wikipedia.org/wiki/Callback_%28computer_programming%29</a><br>
><br>
> Sorry, but you will not be able to do such a project unless you understand such basic computer science primitives. </p>
<p>You are wrong. A critical section is a mutex and an event in this context is a binary semaphore.</p>
<p>Regards,<br>
Sven</p>