query on Message queues
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > query on Message queues




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    query on Message queues  
rahul8143@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-29-05 12:50 PM

hello,
I read one statement about message queues that "Message queues
can be used between related and unrelated processes running on a
machine"
I want to know what is related and unrelated processes mean?
what are the examples for both related and unrelated processes on linux
OS?
regards,
rahul.






[ Post a follow-up to this message ]



    Re: query on Message queues  
Fletcher Glenn


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-29-05 11:00 PM

rahul8143@gmail.com wrote:
> hello,
>          I read one statement about message queues that "Message queues
> can be used between related and unrelated processes running on a
> machine"
>          I want to know what is related and unrelated processes mean?
> what are the examples for both related and unrelated processes on linux
> OS?
> regards,
> rahul.
>

From this and your other posts, it sounds like you need to
crack your textbook and actually read it.

--

Fletcher






[ Post a follow-up to this message ]



    Re: query on Message queues  
rahul8143@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-29-05 11:00 PM


Fletcher Glenn wrote:
> rahul8143@gmail.com wrote: 
>
>  From this and your other posts, it sounds like you need to
> crack your textbook and actually read it.
>
Why i ask because i am confused between related and unrelated
word. its ok to use message queue for unrelated processes as both might
require each others data as input and output but in what context
related processes need message queue?
> --
>
> Fletcher






[ Post a follow-up to this message ]



    Re: query on Message queues  
Gordon Burditt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-29-05 11:00 PM

>         I read one statement about message queues that "Message queues
>can be used between related and unrelated processes running on a
>machine"
>         I want to know what is related and unrelated processes mean?

Processes are related if one is the parent or child of another, or
they are both child processes of a common ancestor.  (Ok, nitpickers,
init is a common ancestor of all processes on the same machine, but
it's not generally too cooperative about setting up communication
between processes.)

Unnamed pipes can be used as a communication mechanism between
related processes, but it requires the common ancestor to create
the pipe and pass down the open file descriptor to the processes
doing the communicating.

>what are the examples for both related and unrelated processes on linux
>OS?

Related processes include a bunch of processes started by your shell
in response to a long, complicated pipeline command.  Unrelated
processes include something forked by your mail client communicating
with the SMTP daemon on the local machine, the resolver code in
your process talking to the local nameserver, or your Mozilla client
talking to the local (caching) instance of Apache.  Generally,
something called a "daemon" is unrelated to the processes it
communicates with (which might be on another host, also), although
there may also be communication between the "dispatcher" daemon
process (often listens on a socket) and "worker" daemon processes
(actually do requests) which may work more like "related process"
communication.

Gordon L. Burditt





[ Post a follow-up to this message ]



    Re: query on Message queues  
Nils O. Selåsdal


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-30-05 01:14 PM

rahul8143@gmail.com wrote:
> Fletcher Glenn wrote:
> 
>
>      Why i ask because i am confused between related and unrelated
> word. its ok to use message queue for unrelated processes as both might
> require each others data as input and output but in what context
> related processes need message queue?
Why ? Depends, usually when they want to pass information to eachother,
and the author found message queues a suitable form of interprocess
communication for the task :-)





[ Post a follow-up to this message ]



    Re: query on Message queues  
Nils O. Selåsdal


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-30-05 01:14 PM

Nils O. Selåsdal wrote:
> rahul8143@gmail.com wrote:
> 
>
> Why ? Depends, usually when they want to pass information to eachother,
> and the author found message queues a suitable form of interprocess
> communication for the task :-)

Oh, and perhaps to clarify the related vs unrelated. A process
is usually said to be related with another if the other process
is either a parent or child of the process. (grandchild/grandparents
might qualify as well.)
That means one could establish various means of communication, such
as a pipe.

Between unrelated processes one must establish other means of
communication. Usually some can be resolved by a name,
such as a named pipe, unix sockets, files, message queues and others.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:53 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register