Re:Threads Are a Bad Idea for Most Purposes (1995) [pdf]
by dboreham on Tuesday January 28, 2020 @03:59PM
(#22173957)
If you were using signals on Win32, that's the problem.
Re:Threads Are a Bad Idea for Most Purposes (1995) [pdf]
by gpderetta on Tuesday January 28, 2020 @08:31PM
(#22176253)
I'm not a win32 programmer, but I think that for a long time windows didn't have os provided condition variables (events are not always an adequate replacement and had nasty footguns around signaling); turns out that iti is hard to implement a cond var with posix semantics and if you managed to get a third paarty implementation it was often buggy. I think they were eventually added in Windows Vista.
And yes, you correctly point out that on nix and Win32, interaction with the kernel is often different. Win32 does a lot right, I won't ever speak negatively of it, it is the desktop OS of choice by a huge margin. It's just that nix and Win32 are so different from each other, that you can't generally write a single implementation of your low level thread interaction for both classes of platforms.