Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

synchronized java

synchronized blocks the next thread's call to method 
 as long as the previous thread's execution is not finished. 
  Threads can access this method one at a time. 
  Without synchronized all threads can access this method simultaneously.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #synchronized #java
ADD COMMENT
Topic
Name
1+7 =