Threads make any single thing on your program mutable without your direct control. Processes keep the mutability scoped into a few hard to extend areas.
Threads make any single thing on your program mutable without your direct control. Processes keep the mutability scoped into a few hard to extend areas.
No they don't. Threads don't mutate random variables by themselves, you need actual code that does the mutation (whether it's running on a separate thread or not).
I mean, how is that statement different from "calling other functions makes any single thing on your program mutable"?
On those languages where functions mutate things, that's basically true. But it's much more common that functions can only mutate global variables, and people keep those in low numbers, exactly for that reason. Actually, replace "functions" with "methods" and you will get into one of the largest flaws of OOP.
But anyway, mutability is much less of a problem outside of concurrent code.