Solved

Shared memory

Posted on 1998-06-08
2
202 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Named range not carried over 10 63
How to determine file rename from EventLog ? 2 49
pre4 challenge 19 98
JQuery serialize and unserialize 8 77
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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.

815 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