Professional Documents
Culture Documents
DEPARTMENT : CSE
Bachelor of Engineering (Computer Science & Engineering)
Java Programing(CST-205)
TOPIC OF PRESENTATION:
2
Multithreading
Multithreading is a Java feature that allows concurrent execution of two or more
parts of a program for maximum utilization of CPU.
Each part of such program is called a thread. So, threads are light-weight processes
within a process.
Multitasking Vs. Multithreading
Compared to multithreading, multitasking is characterized by the following:
These are the reasons why processes are referred to as heavyweight tasks
Multitasking Vs. Multithreading (cont...)
Threads cost less in terms of processor overhead because of the following reasons:
– Multiple threads in a program share the same address space and they are part of the
same process
Video Links:
https://youtu.be/O_Ojfq-OIpM
https://youtu.be/JceAHRlQsqc
Reference Links:
https://www.geeksforgeeks.org/lifecycle-and-states-of-a-thread-in-java/
https://www.journaldev.com/1044/thread-life-cycle-in-java-thread-states-in-java
https://www.tutorialspoint.com/java/java_multithreading.htm
https://www.iitk.ac.in/esc101/05Aug/tutorial/essential/threads/lifecycle.html
https://www.decodejava.com/life-cycle-of-thread.htm
https://www.javatpoint.com/life-cycle-of-a-thread
THANK YOU