|
Boost : |
Subject: Re: [boost] [tasklets] new lib
From: Oliver Kowalke (k-oli_at_[hidden])
Date: 2011-01-09 11:04:44
As I wrote in the docu a tasklet is associated with a fiber. The
difference between a fiber and a coroutine is that the coroutine can be
seen as a language-level construct while a fiber is a system-level
construct (fibers are conceptualy equivalent to coroutines).
boost.tasklet provides an scheduler interface and comes with a
round-robin scheduler (priority scheduler is planed).
Am 09.01.2011 16:56, schrieb Giorgio Zoppi:
> 2011/1/9 Oliver Kowalke<k-oli_at_[hidden]>:
>> boost.tasklet is a split-up from old boost.fiber.
>> The lib allow to execute micro-tasks (tasklets) in a thread and assigns each
>> small task with a micro-thread/fiber - so tasklets are cooperativly
>> scheduled. The API contains classes and functions to manage and synchronize
>> tasklets (even if the tasklets are running on different threads).
>> boost.tasklet is an example how boost.fiber could be used for cooperative
>> scheduling ansd will be used by the threadpool from boost.task.
>
> Which is the different between tasklets and coroutines?
>
>> Oliver
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk