5 ms·
My understanding is that an efficient lock would require hardware support, which is surfaced by the OS.
by joeldo 4y ago
My understanding is that an efficient lock would require hardware support, which is surfaced by the OS.
- gsvelto 4y agoNo specific hardware support is needed to implement a lock. The atomic operations are all accessible from user-space - they are platform dependent though. The problem with locks is that they interact with scheduling and that's where the kernel comes in, that's why you need an OS-specific component too.
- joeldo 4y agoThat makes sense, thanks.