Multi threading means. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Multi threading means.

Real world solution...

9th Nov 2019, 10:44 AM
Revathi
Revathi - avatar
5 Answers
+ 3
In general when you write a code in Java and it shows an exception then you can see something like- Exception in thread "main" followed by the type of exception. So one thing you should know that java contains atleast one thread that is main. Apart from that if you want to run multiple methods performing some specific task simultaneously then you create multiple threads to achieve the result. A simple example would be a microsoft word document, so when you open word document you are creating a process and inside that process multiple threads are running for eg- the first letter of a sentence is starting with a capital letter, spell checks are done, your grammar is corrected etc. all by itself. So this is how multiple threads are used.
9th Nov 2019, 11:04 AM
Avinesh
Avinesh - avatar
25th Dec 2019, 1:39 PM
Avinesh
Avinesh - avatar
0
What is the use of the threads
25th Dec 2019, 1:34 PM
Revathi
Revathi - avatar
0
Revathi Madduri even after that explanation you didn't understand? Threads are used to execute multiple task at the same time.
25th Dec 2019, 1:37 PM
Avinesh
Avinesh - avatar
0
Kk
25th Dec 2019, 1:37 PM
Revathi
Revathi - avatar