Multithread and Synchronization
Multithread and Synchronization
THREAD SYNCHRONIZATION
Instructor:
Strongly suggested
for a better learning
Study and and understanding Study and
understand all of this course: understand the
the artifacts self study topics
MULTITHREADING
Threads can share same address space and Interprocess communication is very
inter-thread communication is less expensive expensive and the context switching
than inter-process communication. from one process to another is costly
o Two or more threads try to read and write the shared data
simultaneously.
◊ Thread synchronization
Synchronized method
Synchronized block
Wait/Notify mechanism