Contact Us || Privacy Policy || About Us |
|
Thread in Java→ Thread is the smallest unit of program. → Each thread define a separate path for the execution. → In concurrent programming, there are two basic units of execution: process and threads. → A thread is a single sequential flow of control within a program. In other words. Some books use the name lightweight process instead of thread. → At a time one thread is executed only. MultiThreading→ MultiThrading is a conceptual program where, A program is divided into two ro more sub program. → All the sub program can be implemented in parallel → It is a process of executing multiple threads simultaneously. → MultiThreading is specialize from multitasking. Ther are Two type of multitasking.
![]() ![]() → At a time one thread is executed only.
Next TopicLife Cycle of Thread
|