multi-threads

http://tutorials.jenkov.com/java-concurrency/thread-safety.html

BIG mistake: usually there is no thread-safe issue if two threads are working on different instance (except the static class variables or methods).

Thread-safe issue only happens to the same object instance.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s