What is multi threading in Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is multi threading in Java?

21st Sep 2019, 12:01 PM
Sudhakar
Sudhakar - avatar
2 Answers
+ 3
Multithreading in java is a process of executing multiple threads simultaneously. A thread is a lightweight sub-process, the smallest unit of processing. Multiprocessing and multithreading, both are used to achieve multitasking. However, we use multithreading than multiprocessing because threads use a shared memory area. They don't allocate separate memory area so saves memory, and context-switching between the threads takes less time than process. Java Multithreading is mostly used in games, animation, etc. Reference: https://www.javatpoint.com/multithreading-in-java
21st Sep 2019, 12:04 PM
Peter Parkers
Peter Parkers - avatar
+ 3
A way of achieving multi tasking.
21st Sep 2019, 1:12 PM
Sonic
Sonic - avatar