Difference between thread and fiber on windows
-
Hello all Can any one please explain me the difference between thread and a fiber? In what circumstances we should go for a fiber? Please give me some sample code or point to URL where I can get the same. Thanks for your help. Hari.
-
Hello all Can any one please explain me the difference between thread and a fiber? In what circumstances we should go for a fiber? Please give me some sample code or point to URL where I can get the same. Thanks for your help. Hari.
From MSDN: A fiber is a unit of execution that must be manually scheduled by the application. Fibers run in the context of the threads that schedule them. Each thread can schedule multiple fibers. In general, fibers do not provide advantages over a well-designed multithreaded application. Fibers are not preemptively scheduled.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen