2 ms·
The OS should definitely supply some kind of user-side task scheduling framework. Ideally your task scheduling framework will have as many threads as the machi
by barrkel 17y ago
The OS should definitely supply some kind of user-side task scheduling framework.
Ideally your task scheduling framework will have as many threads as the machine has processors, and will use e.g. work-stealing queues to dispatch work without needing a kernel transition that a thread or process context switch would require. But if every running process implements its own task scheduling framework, and creates as many threads as there are processors, there will be too many threads running around. The OS needs to help out with balancing the load.