Re: [Algorithms] General purpose task parallel threading approach
Brought to you by:
vexxed72
|
From: <asy...@gm...> - 2009-04-15 06:46:11
|
A task is not swapped in this case, it just stays on the worker thread's stack, and worker thread recursively starts doing next task. When dependee (is this the right word ?) task is done, dependent task will get resumed when worker thread finishes tasks it has started working on during the wait period. This fits fine for dependencies which are structured as a tree. Alexander. 2009/4/15 Nicholas "Indy" Ray <ar...@gm...> > On 4/14/09, asy...@gm... <asy...@gm...> wrote: > > When a task gets blocked by a dependency, worker thread can start > executing > > other tasks recursively. > > But if you are are doing a single stack per worker thread, you can't > actually swap tasks as the stack is already being used. > > Indy > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > GDAlgorithms-list mailing list > GDA...@li... > https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list > -- Regards, Alexander Karnakov |