Thread-based or event-based?
Posted Mar 1, 2007 15:16 UTC (Thu) by
zooko (subscriber, #2589)
Parent article:
Thread-based or event-based?
A lot of people (including myself) have decided to write event-based code in user space.
One notable success in that area is BitTorrent. You might be interested in Mark Miller's dissertation, http://erights.org/talks/thesis/index.html, which gives a principled account of why event-based programming can be strictly safer and strictly more secure than other concurrency paradigms.
You might also be interested in the latest salvo in an academic contest to write the fastest web server. The current winner, according to this paper, is event-based http://bcr2.uwaterloo.ca/~brecht/papers/getpaper.php?file... also the Twisted Python project http://twistedmatrix.com.
If the kernel hackers could make user-space code like Twisted Python faster or simpler (at the level that it interfaces with the system, I mean), then I would be pleased. Likewise if the kernel could facilitate user space code such as Twisted to use asynchronous file I/O then that would be nice.
(
Log in to post comments)