[python-win32] Technique to limit number of instances of our application under Terminal Server
Tim Golden
mail at timgolden.me.uk
Fri Mar 12 09:31:54 CET 2010
On 12/03/2010 01:38, Christopher Nilsson wrote:
> Hi all,
>
> On 12 March 2010 02:31, Tim Golden<mail at 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
More information about the python-win32
mailing list