http://libdill.org/tutorial.html
See, in particular, Step 6 of the tutorial.
http://libdill.org/tutorial.html
See, in particular, Step 6 of the tutorial.
Using uThreads you can decide what part of the code should be executed over each kernel thread and, if taskset is used, which core to execute your code. You can do this by creating Clusters and using migration or uThread creating in runtime. Thus you can decide which thread is used to multiplex connections and which one is used to run CPU bound code in addition to having a thread pool for example to do the disk IO asynchronously. Ultimately, one can create a SEDA[1] like architecture using uTrheads. Also you can always use uThread as a single threaded application.
------------------------------------------
[1] https://en.wikipedia.org/wiki/Staged_event-driven_architectu...
Any thoughts on Welsh's Retrospective on SEDA?
http://matt-welsh.blogspot.com/2010/07/retrospective-on-seda...