News for hackers. Stuff that matters.
Re:Fibers: An Elegant Windows API by josteink on Friday March 29, 2019 @06:16PM (#19526140)
Thanks for the detailed answer!

So basically if I’m used to threads as a general cross-platform concept in higher level languages, I’m probably relating to pthreads?

Re:Fibers: An Elegant Windows API by jstimpfle on Saturday March 30, 2019 @03:37AM (#19528317)
I suppose it depends on what your concept of threads is.

If you're designing a complex system, you're more likely to look at what platforms you must support, and then make up your own (less abstract) notion of threads such that it can be implemented on these systems and that it lets you take more advantage of the capabilities of these systems.

I'd be surprised for example if Postgres used pthreads and not its own abstraction, supported by platform-specific implementations.