๐ Synchronized Method: BoyFriend Threads and GirlFriend Object [Video]
๐ก Newskategorie: Programmierung
๐ Quelle: dzone.com
When a method is synchronized, only one thread can enter that objectโs method at a given point in time. If any other thread tries to enter the synchronized method, it will NOT be allowed to enter. It will be put into the BLOCKED
state.
In this post, letโs learn a little more details about the synchronized
method.