Parallel multithreaded READ access. Could this cause any problems?
3 answers
Yes, static members can be read at the same time without any problem. What to worry about is write operations. In most cases, it is best to block all threads while writing to ensure that no concurrency issues are introduced as a result of the write operation.
But a concurrent read without any writes will work fine, without the need for locking or any concurrecy-related corruption.
+2
source to share
Everything will be fine until we reach the era of quantum computing, at which point the Heisenberg uncertainty principle indicates that readings will begin to lead suspiciously, as he writes.
At least that would be pretty funny. In fact, I know practically nothing about quantum computing.
I think you're okay.
0
source to share