Advanced Java Chapter 5
Advanced Java Chapter 5
Multi-threading concept
Mutual Exclusive:
Mutual Exclusive helps keep threads from interfering with
one another while sharing data. Mutual Exclusion can be
achieved in three ways in java:
Synchronized Method
Synchronized Block
Static Synchronization