Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ipc doubt

0 views
Skip to first unread message

ramu

unread,
Oct 20, 2009, 2:08:48 AM10/20/09
to
Hi ,
Suppose there are two tasks, T1 and T2. T1 sends a message to T2
through a message queue. How the task T2 comes to know that a message
has arrived for it?


Thanks n Regards

Michael R. Kesti

unread,
Oct 20, 2009, 9:57:32 AM10/20/09
to

T2 calls msgQReceive(). If no message is yet available when T2 calls
msgQReceive() then msgQReceive() does not immediately return but instead
waits for T1 (or any other task) to write on the message queue by calling
call msgQSend(). This is called blocking and T2 must be designed to be
in this way blocked.

--
========================================================================
Michael Kesti | "And like, one and one don't make
| two, one and one make one."
mrkesti at hotmail dot com | - The Who, Bargain

0 new messages