← Back to Users
bsder's activity in the archive.
BS. I've used pthreads on FreeBSD, I've used pthreads on Linux (Redhat 5.2) Both block the whole App when a thread waits for a socket connection.
You're right, if a thread blocks for IO the whole process blocks for IO. The key is to use non-blocking IO. fcntl is your friend. Anyways, Linux has the same problem, so it doesn't add much fire to the Linux vs. BSD arguement.
BS.
I've used pthreads on FreeBSD, I've used pthreads on Linux (Redhat 5.2) Both block the whole App when a thread waits for a socket connection.
You're right, if a thread blocks for IO the whole process blocks for IO. The key is to use non-blocking IO. fcntl is your friend.
Anyways, Linux has the same problem, so it doesn't add much fire to the Linux vs. BSD arguement.