On 12/03/2010 01:38, Christopher Nilsson wrote:
Hi all,

On 12 March 2010 02:31, Tim Golden<m...@timgolden.me.uk>  wrote:


  The advantage of mutex's over semaphores would be that applications that
terminate abnormally would have their mutex released, while applications
using semaphors that terminated abnormally would leave their semaphore
with an incorrect count?


See above; I don't [think] mutexes and semaphores differ in this respect.

Actually, if you take the example of someone calling TerminateProcess()
against the process (or some other equally fatal
do-not-pass-the-finally-block abnormal exits), they will be different.

For semaphores, the handles will be mopped up, but the available count on
that semaphore will not be incremented.

Key information. Thanks.

TJG
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to