3 ms·
Technically, as a single-core CPU, all operations are atomic. /s
by mmastrac 5y ago
Technically, as a single-core CPU, all operations are atomic. /s
- Teknoman117 5y agoI suppose I should say instructions which let you do critical sections without disabling preemption or interrupts =P
- mmastrac 5y agoHah yes. I got used to the CLI/STI pattern around perf-sensitive or concurrent code on <=386 back in the day. EDIT: though I wonder now if you could use the fact that flags are returned from basic memory ALU operations to implement some basic atomics.