Hi, I thought about next scenario: lets assume S(sender) and R(receiver)
threads communicating
on the same channel with senders and receivers vectors are empty.
S: checks if receivers vector empty => push itself to the senders vector,
just before the suspend word processed
    R thread get control.
R: push itself on the receivers vector => checks if senders vector empty
(not) => removes sender from the list and suspend
S: suspend

Isn't it a deadlock situation ?


Thanks.
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to