Re:Show HN: uThreads – Concurrent User Threads in C and C++
by michaelsbradley on Monday November 07, 2016 @05:11PM
(#12895688)
First time I've heard of SEDA, though I've been aware of the concerns/concepts it addresses, in various forms, for some time.
Any thoughts on Welsh's Retrospective on SEDA?
http://matt-welsh.blogspot.com/2010/07/retrospective-on-seda...
Re:Show HN: uThreads – Concurrent User Threads in C and C++
by saman_b on Monday November 07, 2016 @07:17PM
(#12896526)
I have seen this before. Those are very good points, and I am trying to move this library towards supporting a SEDA type architecture with dynamic control and auto tuning runtime parameters.
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...