We can call run() method if we want but then it would behave just like a normal method and we would not be able to… [Read More]
Can we start a Thread twice in Java?
Can we start a thread twice in Java? The answer is no, once a thread is started, it can never be started again. Doing so… [Read More]
Thread join() method in Java with example
The join() method is used to hold the execution of currently running thread until the specified thread is dead(finished execution). In this tutorial we will… [Read More]
Daemon thread in Java with example
Daemon thread is a low priority thread (in context of JVM) that runs in background to perform tasks such as garbage collection (gc) etc., they… [Read More]
What is the difference between a process and a thread in Java?
This is the most frequently asked question during interviews. In this post we will discuss the differences between thread and process. You must have heard… [Read More]
Multithreading in java with examples
Before we talk about multithreading, let’s discuss threads. A thread is a light-weight smallest part of a process that can run concurrently with the other… [Read More]
Thread life cycle in java and thread scheduling
In previous post I have covered almost all the terms related to Java threads. Here we will learn Thread life cycle in java, we’ll also… [Read More]
Basics: All about Java threads
What are Java Threads? A thread is a: Facility to allow multiple activities within a single process Referred as lightweight process A thread is a… [Read More]