Synchronized classes have no public members

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 13 05:16:58 PDT 2015


On Tuesday, 13 October 2015 at 09:36:23 UTC, ponce wrote:
> It's also difficult to explain: what is a "monitor"?

Not difficult? A monitor is facade/object which only allows one 
method to execute concurrently.

It can work out ok if synchronization/lockfree mechanisms are 
built into the language so that the compiler can optimize away 
overhead.



More information about the Digitalmars-d mailing list