4 ms·
A system call has even more overhead than the lock prefix!
by jart 4y ago
A system call has even more overhead than the lock prefix!
- monocasa 4y agoTrue, but arguably this article constrains itself to the kernel-user boundary, where atomic instructions could be considered out of scope considering how the Linux syscall ABI is constructed.
- jart 4y agohttps://www.reddit.com/r/C_Programming/comments/120momf/a_lockfree_single_element_generic_queue/ https://www.reddit.com/r/C_Programming/comments/120momf/a_lo...