3 ms·
> How do you deal with multi-threading in C89? Certainly not by means of the abhorrent garbage that has been added to C for threading. POSIX is a standard. PO
by kazinator 9y ago
> How do you deal with multi-threading in C89?
Certainly not by means of the abhorrent garbage that has been added to C for threading.
POSIX is a standard. POSIX started as a branch of the Unix C library that didn't belong in the language. So for instance that's where "open" and "ioctl" went, while "printf" and "malloc" went to C.
There is no need for C to start adding its own versions of POSIX requirements (let alone toy versions); it just adds complexity.
Now what it means is that we can end up with some mongrel project where we have POSIX threads being spawned in one module, ISO C threads in another and so on.