Fibers (series, part1)

added by badamczewski
6/21/2012 8:45:21 AM

3 Kicks, 238 Views

When working with applications that utilize lots of threads and those threads arent particularry long running we can stumble upon a problem that we may lose most of the processing time for thread context switches, so it would be desirable to do all of the processing on a limited number of threads, usualy this can be done using a queue of delegates that each thread will process, but sometimes we cannot have that and still we would want to spawn units of work that behave like threads, enter Fibers.


6/21/2012 8:44:50 AM
Very neat implementation, you should consider making an official project out of your fiber manager and getting it up on github and nuget.

6/21/2012 9:14:43 AM

I'm currently considering that, but it would be rather a full concurrency library with a few fundamentals like work stealing, non blocking race locks, and priority queuing.

The problem is that my time is limited and I lack the horse power to keep that lib up to date, so if you would want to join (or know someone) then such project could actually kick off :)