Re:Benchmarking OS primitives
by pjmlp on Wednesday March 21, 2018 @10:44AM
(#16638413)
I know, but that is very Linux specific and not something that can be generalized in a portable way across UNIX implementations.
[ Parent
| on HN ]
You cannot generalize scheduling primitives across UNIX implementations.
To quote the FreeBSD manual: "Traditional UNIX® does not define any API nor implementation for threading, while POSIX® defines its threading API but the implementation is undefined."
macOS was at least temporarily considered a true UNIX, and the scheduling primitive there is a Mach task. I frankly don't remember much about FreeBSD anymore, but I would assume that the unit of scheduling there is somewhat identical to that of Linux... Just implemented nicer.
That is the whole point, Linux != UNIX, yet every time someone discuss some UNIX feature, there comes a Linux example as if Linux would the be representative of how UNIX works.