Linked by Hadrien Grasland on Fri 27th May 2011 11:34 UTC
General Development After having an interesting discussion with Brendan on the topic of deadlocks in threaded and asynchronous event handling systems (see the comments on this blog post), I just had something to ask to the developers on OSnews: could you live without blocking API calls? Could you work with APIs where lengthy tasks like writing to a file, sending a signal, doing network I/O, etc is done in a nonblocking fashion, with only callbacks as a mechanism to return results and notify your software when an operation is done?
Thread beginning with comment 474818
To read all comments associated with this story, please click here.
Is it possible to do so ?
by Lennie on Fri 27th May 2011 14:16 UTC
Lennie
Member since:
2007-09-22

It is actually pretty hard to live without it, even something like node.js has (I think it was) 250 threads to handle any blocking calls.

There are still some things in the operating systems which hinder doing this everywhere.

Yes, people wrap code around it to mask it in the API/language, but it would be better if it could be done proper.

Reply Score: 3