Skip to content

Tag Archives: Java-Multithreading

Thread can be referred to as a lightweight process. Thread uses fewer resources to create and exist in the process; thread shares process resources. The… Read More
Inter-Thread communication is a way by which synchronized threads can communicate with each other using the methods namely wait(), notify() and notifyAll(). wait() method is… Read More
Java is a popular object-oriented programming language used by developers and coders for website/app development. The creation of a class object using a new keyword… Read More
In recent years object-oriented programming has formed the pillars/bases of Website and Application (Software) Development. Java and Python are popular Object-Oriented programming languages out of… Read More
Java is one of the most popular Object-Oriented programming languages offered by Oracle which has a wide range of applications in website and application development… Read More
A semaphore work on the concepts of permits. A semaphore is initialized with a certain number of permits. The number of permits is equal to… Read More
Busy Spinning is a wait strategy in which one thread waits for some condition to happen which is to be set by some other thread.… Read More
The Java language support thread synchronization through the use of monitors. A monitor is associated with a specific data item and functions as a lock… Read More
If two threads are waiting for each other forever such type of infinite waiting is called deadlock in java. Synchronized keyword is the only reason… Read More
Thread is the backbone of multithreading in java. Multithreading is a feature that allows concurrent execution of two or more parts of the program for… Read More
Threads are light-weight processes within a process.. Multithreading in java is a feature that allows concurrent execution of two or more parts of a program… Read More
In java if a thread doesn’t want to perform any operation for a particular amount of time then we should go for the sleep() method,… Read More
Every class in Java has a unique lock which is nothing but class level lock.  If a thread wants to execute a static synchronized method,… Read More
Every object in java has a unique lock. Whenever we are using a synchronized keyword, then only the lock concept will come into the picture.… Read More
Blocking methods in java are the particular set of methods that block the thread until its operation is complete. So, they will have to block… Read More