|
|
| Author |
Message |
< Erlang ~ gen_tcp synchronous/asynchronous blocking/non blocking I/O |
| xalnia |
Posted: Fri Apr 24, 2009 2:29 pm |
|
|
|
Joined: 24 Apr 2009
Posts: 1
|
Does gen_tcp use synchronous I/O or asynchronous I/O?
As I understand things...
The accept function is a blocking call, so its synchronous blocking I/O.
The gen_tcp receive function performs blocking synchronous I/O too as the calling process blocks.
but what about when we set active process to true, and simply receive, does that become asynchronous/non blocking I/O, as we simply call receive, and receive ANY request (so we're receiving all types of messages). however its still blocking given that the receive primitive is a blocking function itself.
Am i making any sense?
Would appreciate it if anyone could clarify things for me. |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|