Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Shared memory

Posted on 1998-06-08
2
Medium Priority
?
234 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
vijayakumar earned 600 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 Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Suggested Courses

618 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