Core java tutorial for beginners
A tutorial blog which explains different core concepts related to Java along with programming examples
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.

Inter Thread Communication

Suryateja Pericherla Categories: Multithreading. No Comments on Inter Thread Communication

In this article we will learn how to implement inter thread communication i.e how can we coordinate the communication between two or more threads.   Although we can restrict the access of data or code to a single thread at a time by using synchronization, it can’t guarantee the consistent execution of our logic.   […]

Read the rest of this entry »

Thread Synchronization in Java

Suryateja Pericherla Categories: Multithreading. No Comments on Thread Synchronization in Java

In this article we will learn about what is synchronization? why synchronization is needed? and how to synchronize threads in Java along with sample programs.   Why Synchronization is Needed?   When two or more threads are accessing the same resource like a variable or a data structure, it may lead to inconsistent data or […]

Read the rest of this entry »