Comment by LtWorf 5 days ago Another thread can access it and do that, how could the compiler possibly know about it? 4 comments LtWorf Reply bmm6o 5 days ago There are documented ways to ensure that changes are visible across threads (e.g. locks). If these are not used, the compiler is within its rights to not go out of its way to pull changes from another thread. LtWorf 4 days ago Except python has a well documented global lock. anematode 4 days ago This thread is discussing Java, not Python 1 reply →
bmm6o 5 days ago There are documented ways to ensure that changes are visible across threads (e.g. locks). If these are not used, the compiler is within its rights to not go out of its way to pull changes from another thread. LtWorf 4 days ago Except python has a well documented global lock. anematode 4 days ago This thread is discussing Java, not Python 1 reply →
LtWorf 4 days ago Except python has a well documented global lock. anematode 4 days ago This thread is discussing Java, not Python 1 reply →
There are documented ways to ensure that changes are visible across threads (e.g. locks). If these are not used, the compiler is within its rights to not go out of its way to pull changes from another thread.
Except python has a well documented global lock.
This thread is discussing Java, not Python
1 reply →