4 ms·
Why did the 8086 have the LOCK prefix? I think of it as being mostly useful in parallel contexts, e.g. lock cmpxchg for an atomic compare and swap. But the 8086
by agalunar 3y ago
Why did the 8086 have the LOCK prefix? I think of it as being mostly useful in parallel contexts, e.g. lock cmpxchg for an atomic compare and swap. But the 8086 was a single core, single thread processor, and I'd be surprised if it were used in multiprocessor machines. Oh! did it have anything to do with the 8087?
- userbinator 3y agoIt was designed with the intention of being used in SMP configurations too, and I believe some industrial control systems were built that way.
- monocasa 3y agoIn addition to what was said about the viability of SMP, the lock prefix is handy for interrupt safe ops without wholesale disabling interrupts.