|
|
Question : Inter process communication in linux.
|
|
Hi, I have some doubts in Inter Process Communication. I have two programs which send and receive data using message queues. Those programs are woking nicely.
1. Now, if I place one program in machine A and another one in machine B, will it work?
2. When do u prefer to use message queues as against shared memory in inter proces communication?
3. Is shared variable and shared memory refers to same meaning?
4. What is the maximum size that a message queue and shared memory can have?
Thanks.
|
Answer : Inter process communication in linux.
|
|
>1. Now, if I place one program in machine A and another one in machine B, will it work? no ... we are not even sure if these systems can communicate !!!
>2. When do u prefer to use message queues as against shared memory in inter proces communication? producer consumer type of problems ...
>3. Is shared variable and shared memory refers to same meaning? shared memory is a standard term for an IPC mechanism, I would not claim much familiarity with shared variable .. I guess it would depend on the context ... a simple int can be a shared variable in context of two threads ... IMO, they are different
>4. What is the maximum size that a message queue and shared memory can have? implementation dependent
|
|
|
|
|