i have seen many web framework provide non-blocking web server, i just want to know what it mean.
views:
172answers:
2
A:
Non-blocking generally means event driven, multiplexing all activity via an event driven system in a single thread, as opposed to using multiple threads.
Yann Ramin
2009-12-18 06:12:11
+3
A:
Using a blocking socket, execution will wait (ie. "block") until the full socket operation has taken place. So, you can process any results/responses in your code immediately after. These are also called synchronous sockets.
A non-blocking socket operation will allow execution to resume immediately and you can handle the server's response with a callback or event. These are called asynchronous sockets.
ty
2009-12-18 06:16:05