Meet Patel

I am a passionate programmer, blogger, and developer by choice. I like to write and contribute to the developer community.

Thread Class start() Method in Java : Free Java Tutorials and Online Training

Thread Class public void start() method creates a new thread and causes this thread to begin its execution by invoking its run() method which performs a separate job that the thread is supposed to perform. Basically, we start a thread by calling start() function. Start() function does the following: Creates a new thread and evaluates …

Thread Class start() Method in Java : Free Java Tutorials and Online Training Read More »

Thread Class run() Method in Java : Free Java Tutorials and Online Training

Thread Class public void run() method is the only method of the Runnable interface and the classes which aim to execute their code in a separate thread of execution for the job assigned to that thread. First, implement the Runnable interface. Subsequently, define this method and put all the code expected to be executed in the …

Thread Class run() Method in Java : Free Java Tutorials and Online Training Read More »

Thread Scheduling in Java : Free Java Tutorials and Online Training

Thread Scheduling is done in JVM by thread scheduler. If multiple threads are waiting to get the chance of execution, then Thread Scheduler decides the order of execution of threads. We can’t predict exact order of thread execution as different JVMs use different scheduling algorithms like Round Robin, First Come First Serve, Shortest Job First …

Thread Scheduling in Java : Free Java Tutorials and Online Training Read More »

Multi Threading in Java : Free Java Tutorials and Online Training

Multitasking – The objective of multitasking is to execute multiple tasks simultaneously to reduce CPU response time and make program execution faster and improve overall system performance. In Java we have multi processing and multi threading. It can be achieved in two ways: 1) Process-based Multitasking (multi-processing) In multi-processing, each task that is being concurrently executed …

Multi Threading in Java : Free Java Tutorials and Online Training Read More »