Re: [Algorithms] General purpose task parallel threading approach
Brought to you by:
vexxed72
|
From: Jarkko L. <al...@gm...> - 2009-04-05 20:45:07
|
Why is it a problem to execute the tasks in recursive way? Note that this recursive way of executing tasks is used only when blocking within tasks, not in the job queue dependency system. Cheers, Jarkko _____ From: asy...@gm... [mailto:asy...@gm...] Sent: Sunday, April 05, 2009 8:34 PM To: Game Development Algorithms Subject: Re: [Algorithms] General purpose task parallel threading approach Without the ability to save/restore tasks your dependency system will have a big bunch of limitations, because you can only execute tasks during a wait in a recursive way ONLY. 2009/4/5 Jarkko Lempiainen <al...@gm...> You could also not have a wait for dependent tasks within a task, but rather have job queue dependency system to take care of it by splitting the function in two tasks. Or you could implement the wait by pulling tasks from the job queue until the dependent tasks have been completed. There is no context switches needed in either case though. |