On Tuesday, 26 January 2016 at 11:41:49 UTC, nbro wrote:
Hi!
I have seen that D offers basically similar constructs to Java
for example for creating multithreaded applications. I would
like to understand better what are the real advantages that D
offers. Does D offer something that other known programming
languages, such as C++, Java and Python, do not offer? An
exhaustive explanation with concrete examples would be nice.
Moreover, could you also explain why D was designed to
synchronize entire classes instead of single methods. If I
synchronize single methods (in Java for example), I could still
be able to use other non-synchronized methods without needing to
acquire the lock, so I don't understand this decision.