Multithreading in Java
Multithreading in Java Multithreading in Java:- Two and more thread execute on same time is called a multi threading. When two thread working at a time then thread perform independently but its path is different. so at execution time if any exception caught in any one thread then that does not effect on other thread. Multi Threading is used for achieving a multi-taking. Thread :- Thread is a lightweight process. Thread is a basic unit of CPU and which is perform its task independently because its path is different. Thread is a pre defined class in Java which is belongs to the Java.lang package. Most Read:- Difference between Method overloading and overriding Advantage of Multi-Threading :- 1. Thread is independent so it does not block the user. 2. Multi threading perform more than one task using at a time so it is saving the user time. 3. Multi threading is increase the performance CPU. 4. Decrease cost of maintenance. 5. Improvise
0 Comments
Hello Friends, Please comment and share and do not write spam messages