Shared Memory is the BEST IPC and fast way of communication
For shared memory system calls are less b/w kernel and application compared to other IPC's.
http://www.ddj.com/documen
Main Topics
Browse All Topicshello,
Is there any type of comparison among semaphores,sockets,shared memory,message queues,pipes that will state that which is most appropriate methos for any type of application? In an all how to determine which IPC mechanism use for a newly developing appliations? also which is fast mechanism?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Shared Memory is the BEST IPC and fast way of communication
For shared memory system calls are less b/w kernel and application compared to other IPC's.
http://www.ddj.com/documen
What does the app have to communicate with? I am guessing from your question - other invocations of itself.
TCP/IP sockets give you the possibility that the other copy is running on another system. They do incur more overhead than some other methods, but are you really going to notice?
Shared memory is quick but definitely same system only. And you need to coordinate access to it so corrupt messages are not seen.
X uses unix sockets for intra system and IP sockets for inter system communication. As an experiment, you could configure your local X server to use IP only and see if you can tell the difference. I don't think you will...
hello,
sorry to response late. I am asking in general on linux on same system say i have to write a application that requires to execute concurrent proesses quick and have to access some data which is shared then which is fast shared memory, semaphores, message queue, pipes?
Can IPC be used between diferent systems also then which is best for that case?
I think sockets is not IPC right?
Business Accounts
Answer for Membership
by: g14Posted on 2005-08-30 at 13:21:00ID: 14788617
Use DBUS. It is the new 'accepted' IPC mechanism from freedesktop.org and is being embraced by the big window managers and graphical toolkits.
/Software/ dbus
http://www.freedesktop.org
If you want something that won't go away in the future (like bonobo being phased out) stick with DBUS.