in reply to Re^3: how did blocking IO become such a problem?
in thread how did blocking IO become such a problem?
The primary benefit is the simplified code that results from having each logical part of your application run as a simple linear flow or loop, with only that state it needs, visible to it.
True, but is that not true of fork as well? Neither one distorts your code the way "Everything's a callback! Hooray!" does.
The difficulty arises when attempting to share information between threads and processes. Then you run into locking and the possibility of data inconsistency. Sometimes I'd rather deal with that than with event-driven programming, and other times I wouldn't.