nagalenoj has asked for the wisdom of the Perl Monks concerning the following question:
Is it possible to watch message queue for a new message?
We can do this by having a loop and a sleep inside it and check for new messages in the message queue. But, I feel this is not a worthy solution. If no messages are coming then it is of no use to check every time after sleep.
Is there any other way to accomplish this task? similar to select function for sockets
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Way to monitor message queue
by rcaputo (Chaplain) on Aug 05, 2009 at 05:40 UTC | |
|
Re: Way to monitor message queue
by Your Mother (Archbishop) on Aug 05, 2009 at 05:28 UTC | |
|
Re: Way to monitor message queue
by BrowserUk (Patriarch) on Aug 05, 2009 at 06:21 UTC | |
by nagalenoj (Friar) on Aug 05, 2009 at 07:04 UTC | |
|
Re: Way to monitor message queue
by cdarke (Prior) on Aug 05, 2009 at 08:04 UTC |