🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14440

Re: MUTEX Objects

#14440
From: PaulMac
Date: Thu, 14 Aug 2003 14:13
35 lines
2395 bytes
Leo,
Thank you for the link to the information.  I'm just wondering how Terminal
Services were enabled on the development workstations.  It sounds like it is
a concerted effort to enable them.  Also, the default of "localizing" kernel
objects is a real concern since it effectively breaks interprocess
synchronization.  A default of "global" kernel objects seems like it would
be safer.

Paul Mac

"Leo Havm�ller" <leh@-nospam-rtx.dk> wrote in message
news:3f3b244f@newsgroups.borland.com...
> "PaulMac" <machiave@i-stat.com> wrote in message
> news:3f3a81c8@newsgroups.borland.com...
> > In using MUTEX objects, I came across something unexpected.  Given a
> Windows
> > GUI app and a Service app, if the same named MUTEX is accessed, both
> > applications can acquire it when the other has already done so.
However,
> if
> > both applications are service apps or both are GUI apps, then the proper
> > synchronization occurs.
> >
> > It has been my understanding that MUTEXes, being kernel objects, are
> > "global" to a system.  So, why am I seeing this behavior?
>
> The GUI app lives in a windows station whereas the service does not.
> You need to add "Global\" to the mutex name. See "terminal services"
under:
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createmutex.asp
>
> Leo Havm�ller.
>
>
Technical Details
Message-ID: <3f3b991d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f3a81c8@newsgroups.borland.com> <3f3b244f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,1fbb91fdbd389c0b
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-14 07:40:39 PST
From: "PaulMac" <machiave@i-stat.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f3a81c8@newsgroups.borland.com> <3f3b244f@newsgroups.borland.com>
Subject: Re: MUTEX Objects
Date: Thu, 14 Aug 2003 10:13:49 -0400
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 65.162.128.158
Message-ID: <3f3b991d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060870429 65.162.128.158 (14 Aug 2003 07:13:49 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail