Re: Mutex not working as expected
From: Tom Shelton (tshelton_at_YOUKNOWTHEDRILLcomcast.net)
Date: 02/16/05
- Next message: Ken Tucker [MVP]: "Re: Accessing a Datagrid from Within a Class"
- Previous message: Jay B. Harlow [MVP - Outlook]: "Re: Mutex not working as expected"
- In reply to: Jay B. Harlow [MVP - Outlook]: "Re: Mutex not working as expected"
- Next in thread: Jay B. Harlow [MVP - Outlook]: "Re: Mutex not working as expected"
- Reply: Jay B. Harlow [MVP - Outlook]: "Re: Mutex not working as expected"
- Reply: Jay B. Harlow [MVP - Outlook]: "Re: Mutex not working as expected"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Feb 2005 18:23:53 -0800
On 2005-02-16, Jay B. Harlow [MVP - Outlook] <Jay_Harlow_MVP@msn.com> wrote:
> Tom,
>> Mutex's are global to the system unless you specify the Local\\ prefix
>> to the name... Are you sure that the mutex isn't getting GC'd? I came
> Is this true?
>
> Reading CreateMutex (I believe the underlying API used).
>
> htttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createmutex.asp
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/TermServ/kernel_object_namespaces.asp
>
> I get the impression it is true on server side (Server OS) for server
> software, however client side (XP Pro) its the opposite... & server side,
> client software (as in a Terminal Server Session) its true...
>
On previous windows versions, there was no fast user switching, so you
wouldn't have more then one user running programs at the same time...
According to the above, fast user switching is implemented as terminal
service sessions. So, the Global\Local prefixes should apply on windows
xp when you change sessions. I think the default is Global though,
since we had to modify an app recently that used this technique -
specifically because of Terminal Services. Our client was using it and
they could only start one instance of the application for the entire
system...
Hmm... Maybe the default changes with the OS. I just always assumed
that they were global on all systems. I might need to run a little
test.
-- Tom Shelton [MVP]
- Next message: Ken Tucker [MVP]: "Re: Accessing a Datagrid from Within a Class"
- Previous message: Jay B. Harlow [MVP - Outlook]: "Re: Mutex not working as expected"
- In reply to: Jay B. Harlow [MVP - Outlook]: "Re: Mutex not working as expected"
- Next in thread: Jay B. Harlow [MVP - Outlook]: "Re: Mutex not working as expected"
- Reply: Jay B. Harlow [MVP - Outlook]: "Re: Mutex not working as expected"
- Reply: Jay B. Harlow [MVP - Outlook]: "Re: Mutex not working as expected"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|