NYCPHP Meetup

semaphores on Windows

Emmanuel. M. Decarie emm at scriptdigital.com
Tue Mar 11 09:27:35 EST 2003


>Hello,
>
>How one would implement semaphores on Windows NT 5.0?
>
>Could I use COM for that? I'm not familiar with Windows.
>
>Or could it be a good idea to use files and flock?
>
>Any ideas? I'm a little bit afraid to implement semaphore by myself 
>because it can lead to tricky situations.

I forgot to add  that I need semaphores for INSERT and DELETE sql 
statement for MySQL. Maybe this is not needed after all. The rows 
that are concerned are using a column with an AUTO_INCREMENT 
attribute.

I don't need rollback (i.e. transaction). In its book on MySQL, Paul 
Dubois write: "MySQL automatically performs locking for single SQL 
statements to keep clients from interfering with each other." (Paul 
Dubois, MySQL, New Riders, 2000).

Cheers
-Emmanuel
-- 
______________________________________________________________________
Emmanuel Décarie / Programmation pour le Web - Programming for the Web
Radio UserLand/Frontier - Perl - PHP - Javascript  <http://scriptdigital.com/>
Blog: <http://blog.scriptdigital.com> - AIM: scriptdigital




More information about the talk mailing list