LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-23-2009, 01:41 AM   #1
ehsan_haq98@yahoo.com
LQ Newbie
 
Registered: Dec 2009
Posts: 1

Rep: Reputation: 0
POSIX Queues with message type facility of System V queues


Hello Everyone,
We have been using System V message queues for quite some time. Each of our process has two kinds of queues. (1) For receiving transaction messages, which is different for each process and (2) For receiving control messages, which is global for all processes. Each process get its relevant message from (2) based on the process id of that process (using the process id in the message type of msgbuf struct).

Now we are looking to use POSIX queues. I have gone through the documentation but could not find a way to resolve (2).

Can we do selective receive on POSIX queue, based on some message type?

Thanks
Ehsan
 
Old 12-27-2009, 11:43 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by ehsan_haq98@yahoo.com View Post
Can we do selective receive on POSIX queue, based on some message type?
On message type, no. Instead, however, you may use priorities. It usually maps quite well.
 
Old 12-27-2009, 11:45 AM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
When it comes to the message types with process ids... Isn't it a better idea to use more separate queues if you have such application design?
 
1 members found this post helpful.
  


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
POSIX message queues problem.. culin Linux - Software 0 01-12-2009 11:59 PM
Posix Message Queues culin Programming 3 04-08-2007 07:01 AM
POSIX message queues(Solaris) to SYS V message queues(Linux) devershetty Programming 1 01-22-2007 10:15 AM
Posix Message queues? gdipierro Programming 20 07-26-2005 04:59 PM
POSIX message queues... infamous41md Programming 6 05-25-2004 02:53 PM


All times are GMT -5. The time now is 06:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration