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
In reply to Way to monitor message queue by nagalenoj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |