Is there an use case for non-blocking receive when I have threads?

Posted by Gabriel Šcerbák on Stack Overflow See other posts from Stack Overflow or by Gabriel Šcerbák
Published on 2010-04-13T11:46:21Z Indexed on 2010/04/22 22:53 UTC
Read the original article Hit count: 292

I know non-blocking receive is not used as much in message passing, but still some intuition tells me, it is needed. Take for example GUI event driven applications, you need some way to wait for a message in a non-blocking way, so your program can execute some computations. One of the ways to solve this is to have a special thread with message queue. Is there some use case, where you would really need non-blocking receive even if you have threads?

© Stack Overflow or respective owner

Related posts about distributed

Related posts about messaging