News for hackers. Stuff that matters.
Re:Async hazard: MMAP is blocking IO by scienceplease on Sunday August 25, 2024 @06:58AM (#41346339)
> cooperative scheduler that isn't using native kernel threads

Can anyone point me towards cooperative thread schedulers that use native kernel threads? Would this effectively mean implementing a cooperative model on top of pthreads?

Re:Async hazard: MMAP is blocking IO by jsnell on Sunday August 25, 2024 @08:56AM (#41346958)
The term to search for prior art is user-mode scheduler / scheduling. Basically you add additional kernel features that allow making some scheduling decisions in the application, it's not something you'd just build on a vanilla pthreads implementation.

Examples:

Windows 7 UMS: https://learn.microsoft.com/en-us/windows/win32/procthread/u...

google3 fibers / switchto: https://www.youtube.com/watch?v=KXuZi9aeGTw