[wg-parallel] About Lwt and Async

Jeremie Dimino jdimino at janestreet.com
Mon Apr 29 17:01:54 BST 2013


On Mon, Apr 29, 2013 at 4:55 PM, Romain Slootmaekers
<romain at incubaid.com> wrote:
> Posix is indeed broken for all things related to file IO.
> * not all file descriptors are equal:
> [select on a file descriptor for a regular file, always returns true, while
> for a socket you get more relevant results]

Yeah, in the POSIX world blocking means an operation that can block
forever, like reading on a socket.  Reading from a regular file is not
considered as blocking for instance because the data are there on the
disk so you will get them at some point, even if it takes ages because
the disk is slow or because it is in fact a NFS.

> In essence: the situation is a mess.

True.


Jeremie


More information about the wg-parallel mailing list