Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-05-2004, 03:43 AM   #1
LQ Newbie
Registered: Dec 2003
Location: Israel
Distribution: Slackware
Posts: 21

Rep: Reputation: 15
shared memory

i have two processes that i need to communicate through a shared memory segment, how can one of the processes know when the other wrote data into the segment and the other way around ?

anther IPC question, is there a way to know how many processes are listening to a message queue ?
Old 02-05-2004, 04:39 AM   #2
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
Old 02-05-2004, 10:11 AM   #3
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
have them signal each other with sysV semaphores.
Old 02-05-2004, 12:13 PM   #4
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

Rep: Reputation: 38
Thanks for the tip ultimaguy.
Old 02-06-2004, 02:08 PM   #5
LQ Newbie
Registered: Dec 2003
Location: Israel
Distribution: Slackware
Posts: 21

Original Poster
Rep: Reputation: 15
i didnt relly get how am i suppose to use semaphores to signal the processes...
can you explain in more detail ?
or maybe refer me to an example... ?

thanks in advance


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 09:57 AM
c + shared memory dilberim82 Programming 3 03-07-2005 07:49 PM
shared memory blackzone Programming 1 10-14-2004 11:52 AM
About Shared Memory...? aegis_shiva Programming 1 08-25-2004 05:05 AM
where is shared memory in menuconfig?? ner Linux - Newbie 2 05-12-2004 07:00 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration