3 ms·
So FreeBSD can run only on simple single 32-bit CPUs with no cache (or no registers)? I would argue that outside of a few select embedded controllers there's al
by bregma 3y ago
So FreeBSD can run only on simple single 32-bit CPUs with no cache (or no registers)? I would argue that outside of a few select embedded controllers there's almost no hardware out there that meets that requirement.
- Dylan16807 3y agoWhat do you mean? Caches don't break atomicity.
- deleted 3y ago[deleted]
- sapiogram 3y agoYou're confusing atomicity with sequential consistency. The former guarantee is perfectly compatible with caching.
- loeg 3y agoNo, you’re making an unstated bogus assumption somewhere but I’m not sure which one.
- bregma 3y agoIt's the assumption that the hardware operation is the same as the C abstract machine operation. Hint: they're not, and that causes all kinds of subtle problem when programmers assume they are, especially when it comes to atomicity. The compiler caches a value in a register and two threads synchronize on that value? Boom. Or maybe no boom when one was expected.