What is this:
synchronized (this) {
// ...some code...
}
good for? (Could you write an example?)
It prevents concurrent access to a resource. Sun's got a pretty good description with examples.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With