News for hackers. Stuff that matters.
Re:Can you game core allocation on Apple Silicon? by twoodfin on Tuesday November 29, 2022 @08:11AM (#33787135)
My understanding is that many OS kernels into the 1980’s didn’t even have a single lock: Because the only thing that could switch the sole—this is assumed to be a uniprocessor—running kernel “thread” was a hardware interrupt, critical sections would be protected by simply disabling interrupts.
Re:Can you game core allocation on Apple Silicon? by monocasa on Tuesday November 29, 2022 @09:56AM (#33788341)
Uniprocessor kernels even to today will do that. Linux without CONFIG_SMP and CONFIG_PREEMPT simply disables interrupts when the code asks for a lock. https://www.kernel.org/doc/htmldocs/kernel-locking/uniproces...