+ 1

what is multithreading in java?

13th Sep 2016, 10:29 AM
vikas gupta
vikas gupta - avatar
3 Answers
+ 1
To split the work into multiple threads that can run in parallel. These threads can be assigned to different cores of a multi core processor, and therefore the execution time of the program is less than the corresponding single-threaded implementation.
20th Nov 2016, 3:25 AM
Miltiadis Siavvas
+ 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. https://code.sololearn.com/c2CBv0CeJaF3/?ref=app
23rd Nov 2017, 9:34 AM
Wasula Benjamin
Wasula Benjamin - avatar
0
It is a process of executing multiple threads simultaneously. Multithreading is also known as Thread-based Multitasking. Multiprocessing: It is same as multitasking, however in multiprocessing more than one CPUs are involved. On the other hand one CPU is involved in multitasking.
13th Sep 2016, 11:40 AM
Piyush Tambe
Piyush Tambe - avatar