
When the monitor is started, the state is immediately updated to running, and not only when the thread actually has started executing.
When the monitor is started, the state is immediately updated to running, and not only when the thread actually has started executing.