[Spread-users] spread masters help me pls

Alec H. Peterson alec.peterson at messagesystems.com
Sat Sep 16 11:36:26 EDT 2006

Hi Pankaj,

On Sep 16, 2006, at 8:09, Pankaj Bhardwaj wrote:

> hi,
> I have to make a system whican send and receive at any time .
> I have made a client which can send the msg. and receive , but my  
> prog. blocks at the receive call.
> and it is dependent that i can only send when i receive some msg.
> or i can only receive when i send some msg.
> i want that it should always be ready to receive and send.
> should i use threads or a msg queue can work .
> or is there any other option which can work.

You can use SP_poll() to determine whether or not there is a message  
waiting on the mbox (that call should not block).  Alternatively, you  
can use select() on the mbox as well, or something similar (epoll()  
on linux, for example).


More information about the Spread-users mailing list