3 ms·
But, the internal state is still changed by the owner process, in the owner process' context. The external process cannot change it's state behind it's back. E
by srijan4 6y ago
But, the internal state is still changed by the owner process, in the owner process' context. The external process cannot change it's state behind it's back.
Effectively, mutations to the internal state are "serialized" by the owner process, so it's easier to handle possible race conditions without using explicit locks/semaphores.