Lets talk about fibers

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 23 05:43:20 PST 2017


On Sunday, 8 January 2017 at 09:18:19 UTC, Suliman wrote:
>> Simply picking a worker thread + worker fiber when task is 
>> assigned and sticking to it until finished should work good 
>> enough. It is also important to note though that "fiber" is 
>> not the same as "task". Former is execution context primitive, 
>> latter is scheduling abstraction. In fact, heavy load systems 
>> are likely to have many more tasks than fibers at certain 
>> spike points.
>
> Could you explain difference between fibers and tasks. I read a 
> lot, but still can't understand the difference.

The meaning of the word "task" is contextual:

https://en.wikipedia.org/wiki/Task_(computing)

So, yes, it is a confusing term that one should avoid using 
without defining it.

Ola.


More information about the Digitalmars-d mailing list