I haven't ever used synchronized classes myself, but it's probably a way of preventing mistakes where you synchronize some methods, but not others. You can also use synchronized {} blocks to introduce some recursive locking for a series of statements. So you could put that inside of a class method.
The most important thing D does, which is fundamentally
different, is that variables are thread local by default, and you
must opt-in to variables that are shared across threads.
Immutable data can be shared implicitly, because there are no
writers. This means that if you keep only a small amount of
shared state, it should be easy to track down what could possibly
be affected by multi-threading issues.
- What are the real advantages that D off... nbro via Digitalmars-d
- Re: What are the real advantages t... nbro via Digitalmars-d
- Re: What are the real advantag... Guillaume Piolat via Digitalmars-d
- Re: What are the real advantag... Russel Winder via Digitalmars-d
- Re: What are the real advantag... nbro via Digitalmars-d
- Re: What are the real advantag... cym13 via Digitalmars-d
- Re: What are the real advantag... cym13 via Digitalmars-d
- Re: What are the real adva... Thiez via Digitalmars-d
- Re: What are the real advantages t... Kagamin via Digitalmars-d
- Re: What are the real advantag... bachmeier via Digitalmars-d
- Re: What are the real advantages t... w0rp via Digitalmars-d
- Re: What are the real advantages t... Chris Wright via Digitalmars-d
- Re: What are the real advantag... Kagamin via Digitalmars-d
- Re: What are the real adva... Sean Kelly via Digitalmars-d
- Re: What are the real ... Kagamin via Digitalmars-d
- Re: What are the real advantag... Brad Anderson via Digitalmars-d
- Re: What are the real adva... Kagamin via Digitalmars-d
- Re: What are the real ... deadalnix via Digitalmars-d
- Re: What are the real ... Brad Anderson via Digitalmars-d
- Re: What are the real adva... Chris Wright via Digitalmars-d
- Re: What are the real ... Brad Anderson via Digitalmars-d