What is Multi threading in java....? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is Multi threading in java....?

Explain in detail

13th Dec 2017, 3:18 PM
Prashantdkk
Prashantdkk - avatar
3 Answers
+ 4
Imagine that when you run your program, it only has one hand to accomplish tasks with. Now imagine that you added another hand - now it has two hands to complete tasks with. Now imagine that you keep adding more and more hands to it, you're able to accomplish multiple tasks simultaneously by having each hand working on something different at the same time. Threads are basically like the hands. They're additional processes inside of the program's process.
13th Dec 2017, 3:29 PM
AgentSmith
+ 3
see output of my code on multithreading ......u will get the perfect idea how our processor works.....and what is multithreading..
19th Dec 2017, 1:09 PM
Prati
Prati - avatar
0
Okk got it thank you
13th Dec 2017, 3:32 PM
Prashantdkk
Prashantdkk - avatar