Multi-Tasking Questions
- Posted by DGuy <dguy-o000 at usa.net> Dec 08, 2005
- 497 views
Reading over the docs, a couple of qestion popped-up: 1) What effects does task_schedule( id, 0 ) or task_schedule( id, {0,0} ) have? Is it the same as calling task_suspend()? 2) The documentation for task_kill() reads: [quote] " ... [the task] will continue executing up to the next task_yield(), but it may not be rescheduled (brought back to life)." [/quote] The "may not" confuses me. Is that a typo? Should it be "will not"? Or is it possible for a task to call task_kill() on itself, then before task_yield() is hit, the same task decides to sick around and call task_schedule(), thus avoiding being killed?