Category: Threads

How do we implement semaphore in Java 0

How do we implement semaphore in Java

A semaphore is a particular lock that allows more than one thread to access the target object. It’s like having more keys, so that many people can unlock the door. This is how a...

How can two threads running in the same JVM communicate using Pipe streams 0

How can two threads running in the same JVM communicate using Pipe streams

Pipes in Java IO provides the ability for two threads running in the same JVM to communicate. Therefore pipes can also be sources or destinations of data. Creating a pipe using Java IO is...

How to analyze Java thread dumps to find blocked threads 0

How to analyze Java thread dumps to find blocked threads

What is Thread dump? A Java thread dump is a snapshot of what all the threads are doing in the JVM at the particular time we send the request of the dump. The Java...