Sockets and multithreading

Posted by V0idExp on Stack Overflow See other posts from Stack Overflow or by V0idExp
Published on 2010-04-24T06:14:57Z Indexed on 2010/04/24 6:23 UTC
Read the original article Hit count: 243

Filed under:
|
|
|
|

Hi to all! I have an interesting (to me) problem... There are two threads, one for capturing data from std input and sending it through socket to server, and another one which receives data from blocking socket. So, when there's no reply from server, recv() call waits indefenitely, right? But instead of blocking only its calling thread, it blocks the overall process! Why this thing occurs?

© Stack Overflow or respective owner

Related posts about c++

Related posts about socket