+ 2
What is multithreading and how it is achieved in java. What are the advantages of multithreading.
6 Answers
+ 8
Multithreading is the process of performing several tasks at the same time.lets say you create a social network app,at the login stage it should be receiving user data while at the same time accepting info from other users.... multithreading
+ 3
Multithreading in java is a process of executing multiple threads simultaneously.
Advantage of multithreading is we can get combined output .
for example :
if you create two methods which extends thread
let's say one for odd numbers and another for even numbers.
by using functions like thread.sleep()the output will be odd and even numbers but they will not be in sequence.
+ 1
what is thread?
0
Thread is inbuilt class in java
0
okay
0
okay