In this video, I have demonstrated another example of thread synchronization.
Each thread is assigned a task to display a message one character at a time.
A printResource class is used whose object is shared among all threads.
Each thread uses a common instance of printResource class to print message.