2 ms·
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
by twoodfin 4y ago
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.
- monocasa 4y agoUniprocessor 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/uniprocessor.html https://www.kernel.org/doc/htmldocs/kernel-locking/uniproces...