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 474854
To read all comments associated with this story, please click here.
Absolutely
by cefarix on Fri 27th May 2011 20:03 UTC
cefarix
Member since:
2006-03-18

Yes, absolutely, and I think non-blocking API calls don't have to add complexity to software if done right. In fact, they can make things much simpler.

Also, I love the concept of blocks and Grand Central Dispatch that Apple has in Mac OS X and now in iOS as well.

GCD and async I/O go well together.

Reply Score: 1