LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 12: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, 04:09 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
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, 07:23 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
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



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 09:16 AM
IPC Mechanisms Khaj.pandey Programming 3 06-20-2010 01:32 PM
linux locking mechanisms psrs Linux - General 2 04-08-2005 01:19 PM
IPC Mechanisms ananthbv Programming 5 12-20-2003 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:57 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
Open Source Consulting | Domain Registration