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.
In reply to Re^4: how did blocking IO become such a problem?
by chromatic
in thread how did blocking IO become such a problem?
by zentara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |