How multi-threading works in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How multi-threading works in java?

15th Oct 2017, 6:18 AM
Gourav raghuwanshi
Gourav raghuwanshi - avatar
3 Answers
+ 1
By definition, multitasking is when multiple processes share common processing resources such as a CPU. Java is a multi-threaded programming language which means we can develop multi-threaded program using Java. Multi-threading extends the idea of multitasking into applications where you can subdivide specific operations within a single application into individual threads. A multi-threaded program contains two or more parts that can run concurrently and each part can handle a different task at the same time making optimal use CPU. Each of the threads can run in parallel. The OS divides processing time not only among different applications, but also among each thread within an application.
23rd Nov 2017, 9:24 AM
Wasula Benjamin
Wasula Benjamin - avatar
+ 12
You must try reading the article in the link below. It'll clarify everything about multi-threading in Java! - https://howtoprogramwithjava.com/java-multithreading/
15th Oct 2017, 7:26 AM
Dev
Dev - avatar
+ 1
Java is a multi-threaded programming language which means we can develop multi-threaded program using Java. A multi-threaded program contains two or more parts that can run concurrently and each part can handle a different task at the same time making optimal use of the available resources specially when your computer has multiple CPUs. I have found great article on multi threading here you can see http://crbtech.in/Java-Training/multithreading-java/ very helpful and insightful article.
16th Oct 2017, 7:39 AM
mayur kohli
mayur kohli - avatar