Article View: borland.public.cppbuilder.nativeapi
Article #14430MUTEX Objects
From: PaulMac
Date: Wed, 13 Aug 2003 18:21
Date: Wed, 13 Aug 2003 18:21
10 lines
1389 bytes
1389 bytes
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? Paul Mac
Technical Details
Message-ID:
<3f3a81c8@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,1fbb91fdbd389c0b,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-13 11:32:07 PST From: "PaulMac" <machiave@i-stat.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: MUTEX Objects Date: Wed, 13 Aug 2003 14:21:58 -0400 Lines: 12 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: <3f3a81c8@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1060798920 65.162.128.158 (13 Aug 2003 11:22:00 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail