Sorry I don't know the answers but these questions are interesting so BUMP ;)

On Friday, 25 September 2015 at 15:19:27 UTC, bitwise wrote:

1) Are the following two snippets exactly equivalent(not just in observable behaviour)?
a)

Mutex mut;
mut.lock();
scope(exit) mut.unlock();

b)
Mutex mut;
synchronized(mut) { }

Will 'synchronized' call 'lock' on the Mutex, or do something else(possibly related to the interface Object.Monitor)?


Don't know.
Is this Object monitor a mutex or something else?



6) Does 'shared' actually have any effect on non-global variables beside the syntactic regulations?

Don't think so.

Reply via email to