LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-22-2004, 03:58 AM   #1
Galmok
LQ Newbie
 
Registered: Sep 2004
Posts: 1

Rep: Reputation: 0
message queues: msgrcv uses round-robin?


I have this server accepting messages through IPC using msgrcv. I am able to send messages to it using msgsnd and they arrive fine.

My problem is that when more servers are listening to the message queue (the same one), then every server gets a message in turn.

e.g.

I have 2 servers listening with msgrcv and I send 4 messages from the same client:

Server 1 receives message 1
Server 2 receives message 2
Server 1 receives message 3
Server 2 receives message 4
and so forth.

This is with linux kernel 2.6.

With kernel 2.4 this happens instead:

Server 1 receives message 1
Server 1 receives message 2
Server 1 receives message 3
Server 1 receives message 4

Only the first server receives any message. My problem is that I want the kernel 2.4 behaviour, i.e. only one client can listen to incoming messages. Is that possible with message queues?
 
  


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
POSIX message queues(Solaris) to SYS V message queues(Linux) devershetty Programming 1 01-22-2007 10:15 AM
dns round-robin tzkolinux Linux - Networking 1 12-27-2004 03:49 AM
Setting Up DNS Round Robin? Longhair Linux - Networking 0 05-26-2003 01:34 AM
round robin for servers deepagodkhindi Programming 5 05-11-2003 05:50 AM
Round Robin DNS Lucsi Linux - Software 1 07-18-2002 04:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:44 AM.

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