Re:I work in DOS for a day (2014)
by mmastrac on Tuesday July 06, 2021 @02:38PM
(#27752589)
Technically, as a single-core CPU, all operations are atomic. /s
[ Parent
| on HN ]
Re:I work in DOS for a day (2014)
by Teknoman117 on Tuesday July 06, 2021 @04:30PM
(#27753841)
I suppose I should say instructions which let you do critical sections without disabling preemption or interrupts =P
Hah 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.