Hacker News new | ask | show | jobs
by xxpor 1342 days ago
Is there an SMP version of the 386?

You may need locks on a non-SMP system (since you can still have concurrency), but without parallelism you don't need atomics... right?

2 comments

The 386 still has hardware and software interrupts which might just happen between the load and store instructions, so it's not as simple as "we don't need atomics".

If you were writing code specifically for the 386, I suppose you could implement all semaphores as critical sections to guard against external interrupts; I see no reason why that wouldn't work. But realistically, that code would be more of a museum piece than something you'd want to maintain in a 2022 operating system.

Ah interrupts, of course.

/me goes back to his polling-only application :)

(we have an interrupt, but it's "the watchdog fired and you're about to die anyway", so not exactly complex to handle...)

of COURSE there's a Raymond Chen blog post about this :D