<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 09/18/2014 10:32 AM, Xiangrong Fang
wrote:<br>
</div>
<blockquote
cite="mid:CAP93jB3gHocRpmom_1-M5eTmsFF+B7jcJTGpX_h8YSsw4gc1Tw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:'courier
new',monospace"><br>
</div>
<div class="gmail_extra">
<div class="gmail_quote"><br>
<div><br>
</div>
<div>
<div class="gmail_default" style="font-family:'courier
new',monospace;display:inline">I don't quite understand
the logic or difference between critical section </div>
<div class="gmail_default" style="font-family:'courier
new',monospace;display:inline">and events. </div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
They have nothing in common.<br>
<br>
TCriticalSection is a Semaphore (see Wikipedia)<br>
<br>
An event is a callback procedure ->
<a class="moz-txt-link-freetext" 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. <br>
<br>
-Michael<br>
</body>
</html>