Re: two possible bugs in tasking
- Posted by mattlewis (admin) Sep 19, 2012
- 1411 views
useless_ said...
That answers the other unanswered question too: can the task manager run out of task ID numbers? If a task stops running via task_suspend, it's ID can't be reused.
Correct. Those don't get recycled, and the memory they consume (the basic overhead of the control structure and the execution stack, etc) isn't released either. I suspect you'd run out of memory before you ran out of task ids, though I haven't tested this.
Matt