LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-01-2014, 01:38 AM   #1
gopikrishna mogasati
LQ Newbie
 
Registered: Jun 2014
Posts: 12

Rep: Reputation: Disabled
linux ipc mechanisms


why message queues are slowest of all ipc mechanisms especially when compared to pipes in linux.

message queues are slower when compared to shared memory as we need to go from user to kernel space to access the message queue.

How about message queue performance when compared to pipes?? why message queue is slower when compared to pipes mechanism? please explain the reasons with a good intitution.
 
Old 06-01-2014, 05:09 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,307
Blog Entries: 2

Rep: Reputation: Disabled
Messages can be queued and processed based on priority,it's not that they are "slow", it's that they are prioritized. Pipes work off the assumption that all needed resources are available in the instant in which the pipe is utilized. If you create a buffer to hold the over-run of pipes being requested while you wait for resources to become available you have effectively built a message que.
Hope that helps.
 
Old 06-02-2014, 08:23 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,105
Blog Entries: 10

Rep: Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524
Quote:
Originally Posted by gopikrishna mogasati View Post
why message queues are slowest of all ipc mechanisms especially when compared to pipes in linux.

message queues are slower when compared to shared memory as we need to go from user to kernel space to access the message queue.

How about message queue performance when compared to pipes?? why message queue is slower when compared to pipes mechanism? please explain the reasons with a good intitution.
What's your basis for this question? Have you run some tests to validate one versus the other? Or is this a homework question?
 
  


Reply


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
Inter Processor Communications Mechanisms in linux. cyent Linux - Embedded & Single-board computer 1 11-21-2013 10:16 AM
IPC Mechanisms Khaj.pandey Programming 3 06-20-2010 02:32 PM
linux locking mechanisms psrs Linux - General 2 04-08-2005 02:19 PM
IPC Mechanisms ananthbv Programming 5 12-20-2003 12:57 PM


All times are GMT -5. The time now is 08:46 PM.

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