4 ms·
Remember that modern implementations of kernel threads are designed to be general-purpose. So, while a threaded model would solve the problems, it also incurs n
by ankrgyl 15y ago
Remember that modern implementations of kernel threads are designed to be general-purpose. So, while a threaded model would solve the problems, it also incurs necessary overhead (that works towards solving irrelevant problems). The event-driven approach can be thought of as minimalistic user-space threads for this context. Libraries like Python Eventlet (http://eventlet.net/ http://eventlet.net/) and CML (http://cml.cs.uchicago.edu/ http://cml.cs.uchicago.edu/) are trying to reabstract this into the conveniences of thread-style programming.