Access over 35 million academic & study documents

Java synchronization

Content type
User Generated
Showing Page:
1/9

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/9

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/9

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 9 pages?
Access Now
Unformatted Attachment Preview
By Nancy 2015 | By Nancy | CONFIDENTIAL Objective-Day1(1 hour) Synchronization : What and Why?  synchronized method  synchronized block  static synchronization  2015 | By Nancy | CONFIDENTIAL What is Synchronization?   Synchronization in java is the capability to control the access of multiple threads to any shared resource. Think about the need to synchronize the action of multiple threads and make sure that only one thread can access the resource at a given point in time. 2015 | By Nancy | CONFIDENTIAL Why? The synchronization is mainly used to  To prevent thread interference.  To prevent consistency problem. 2015 | By Nancy | CONFIDENTIAL Types of Synchronization There are two types of synchronization  Process Synchronization  Thread Synchronization 2015 | By Nancy | CONFIDENTIAL Thread Synchronization There are two types of thread synchronization  mutual exclusive  inter-thread communication. 2015 | By Nancy | CONFIDENTIAL Thread Synchronization 1) Mutual Exclusive  Synchronized method.  Synchronized block.  static synchronization. 2) Cooperation (Inter-thread communication in java) 2015 | By Nancy | CONFIDENTIAL Mutual Exclusive Mutual Exclusive helps keep threads from interfering with one another while sharing data. This can be done by three ways in java: ○ by synchronized method ○ by synchronized block ○ by static synchronization 2015 | By Nancy | CONFIDENTIAL Thanks By Nancy 2015 | By Nancy ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4