Solved

Shared memory

Posted on 1998-06-08
2
186 Views
Last Modified: 2013-12-26
I want to have a region that can be read by many applications at the same time, but only one application at the time can write.  There can be no reader during a writer.  There can be many reader at once.
I'm using MQX, witch is similar to QNX.
Maybe with mutex or semaphore components...

   Thanks in advance.
0
Comment
Question by:pchaloux
2 Comments
 
LVL 1

Accepted Solution

by:
vijayakumar earned 200 total points
ID: 1292674
You can use Shared memory which allows to share a given region of memory for two or more applications. You can use semaphores for synchronizing the shared memory access. The system calls for
doing this are shmget (to get shared memory), shmat(to attach to shared memory segment) and shmctl( for control operations ex. removing the shared memory). For Synchronizing the shared memory use semaphore system calls namely semget ( to get a sempahore id ), semop (to perform array of operation on sempahore set) and semctl(for control operations). Hope this helps.
0
 

Author Comment

by:pchaloux
ID: 1292675
thank you
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
ORA-01403: no data found 43 83
zeroMAx challenge 20 77
Can not remove SSL certificate on iPhone 6 - iOS10.2 12 92
Not needed 13 58
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now