PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 4.00 average.

Is CreateFileMapping atomic?

 
 
Paul
Guest
Posts: n/a
 
      3rd Aug 2003
I would like to create a system that utilizes shared memory
to do interprocess communication. I would also like to
allow whichever process is the first to execute to create
the shared memory and have additional processes first
attempt to create, but then just attach when it realizes
the file mapping handle already existed.

I am concerned, however, about 2 applications almost
simultaneously attempting to create the shared memory
region. If CreateFileMapping is an atomic operation, there
won't be a problem. If it isn't, what happens when these
two processes are both attempting to create a shared memory
region with the same name? Is there a potential for race
conditions to occur?

Any insight on this would be much appreciated.

Thank you,

Paul
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Atomic SEO afqs64bt Windows Vista Installation 1 25th Apr 2008 01:12 PM
[OT?] CreateFileMapping errors 87 and 1006 testerman Microsoft VC .NET 6 11th Jul 2007 03:29 AM
CreateFileMapping questions CharlesT Windows Vista Security 0 11th Jan 2007 01:14 PM
CreateFileMapping return ERROR_ACCESS_DENIED in Terminal Server environment EagleChen Microsoft Windows 2000 Terminal Server Applications 0 17th Feb 2004 04:06 PM
CreateFileMapping return ERROR_ACCESS_DENIED in Terminal Server environment EagleChen Microsoft Windows 2000 Terminal Server Applications 0 17th Feb 2004 01:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:43 AM.