4 ms·
Can you create a thread pool consisting of one thread, and suspend / resume the thread?
by nine_k 11mo ago
Can you create a thread pool consisting of one thread, and suspend / resume the thread?
- RossBencina 11mo agoDoesn't that negate the point of using coroutines? light-weight concurrency
- nine_k 11mo agoIt does, sadly.
- ethin 11mo agoI mean I guess I could... But threads are pretty heavyweight. Though there may be a more lightweight way of implementing them in kernel mode (not coroutines or fibers, but actual threads) and I just have never heard of it.