Re: Mutex not working as expected

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Tom Shelton (tshelton_at_YOUKNOWTHEDRILLcomcast.net)
Date: 02/16/05


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]


Relevant Pages

  • Re: Cant use "www" url to webserver on LAN?
    ... "Rich Grise" wrote in ... > presumably because that's what the server calls itself. ... prefix "mail", and the prefix "ftp" all point to my current IP. ... There is another option in that the modem will also offer an IP ...
    (comp.os.linux.networking)
  • Re: Tips on domain aggregate replacements
    ... Thanks, Tom. ... but you know how it is with old apps sometimes. ... If you can remove a page count in reports, ... This already is a split db, but the users are 400 miles away from the server ...
    (microsoft.public.access.modulesdaovba)
  • Re: Samba Probleme mit Windows XP 64-Bit
    ... server string = %h server ... Ja, die smb.conf ist nicht ganz identisch, das gibt es nur auf dem SuSE Server. ... tom closed file ...
    (de.comp.os.unix.networking.samba)
  • Work was (Re: Videoing at a gathering)
    ... Old Tom ... I architected lots of n-tier front-ends against SQL server back ends ... play in the woods during the week long training then we'd ... that development work gave me. ...
    (alt.gathering.rainbow)
  • RE: Anpassen der Navigation / des Hauptmenues?
    ... "Tom Gerstner" wrote: ... Leider haben wir dazu nichts im Portal Server gefunden. ... > Also haben wir uns entschieden, das ueber ein eigenes Java Script zu machen. ... > Viele Gruesse, ...
    (microsoft.public.de.german.sharepointportalserver)