Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a fiber api in .net?

Tags:

c#

.net

fiber

Out of more curiosity than anything I've been looking for a set of C#/.net classes to support fibers/co-routines (the win32 version) and haven't had any luck.

Does anybody know of such a beast?

like image 352
dkackman Avatar asked Dec 22 '09 20:12

dkackman


2 Answers

No. There isn't a Fiber API in the Framework. I suspect this is because there is little advantage to using them - even the fiber API page (native) mentions:

In general, fibers do not provide advantages over a well-designed multithreaded application.

.NET makes it so much easier to develop a "well-designed" multithreaded application that I suspect there is little use for a fiber API.

like image 54
Reed Copsey Avatar answered Sep 29 '22 19:09

Reed Copsey


Have you seen this:

Title "Implementing Coroutines for .NET by Wrapping the Unmanaged Fiber API"
in the September 2003 issue of MSDN Magazine

http://msdn.microsoft.com/en-us/magazine/cc164086.aspx

like image 39
LBushkin Avatar answered Sep 29 '22 19:09

LBushkin