+ 1
Multi threading means.
Real world solution...
5 Respuestas
+ 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.
+ 2
This is an example
https://code.sololearn.com/c0OnuURrc86W/?ref=app
0
What is the use of the threads
0
Revathi Madduri even after that explanation you didn't understand?
Threads are used to execute multiple task at the same time.
0
Kk