News for hackers. Stuff that matters.
Re:Your computer is a distributed system by sesuximo on Wednesday March 30, 2022 @10:47AM (#30855944)
I think there’s a big difference which is that your computer is allowed to crash when one component breaks whereas a distributed system is typically more fault tolerant.
Re:Your computer is a distributed system by uvdn7 on Wednesday March 30, 2022 @10:53AM (#30856018)
This is actually what makes handling the distributed system in a single computer easier – everything crashing together makes it an easier problem.

E.g. you have multiple CPU cachelines, caching different values of a main memory location. And there are different cache coherence protocols to keep them sane. But cache coherence protocols never need to worry about the failure mode when one cacheline is temporarily unavailable but the others are.

So yes, there's a distributed system in each multi-core computer, but it's a distributed system with an easier failure mode.

If you like more analogies between CPU caches and distributed systems, https://blog.the-pans.com/cpp-memory-model-as-a-distributed-... :p

Re:Your computer is a distributed system by harperlee on Wednesday March 30, 2022 @10:53AM (#30856020)
Ideally a peripheral crashing should not crash the whole system.
Re:Your computer is a distributed system by catern on Wednesday March 30, 2022 @11:20AM (#30856379)
And indeed it does not: Modern operating systems like Linux can perfectly well deal with all kinds of devices crashing or disappearing at runtime. Just like in larger distributed systems.
Re:Your computer is a distributed system by zerohp on Wednesday March 30, 2022 @10:54PM (#30863363)
That's not entirely true. There's usually some level of fault recovery built in but it doesn't extend to the level of allowing any component to fail at any time.