+ 2

What is multithreading and how it is achieved in java. What are the advantages of multithreading.

10th Dec 2017, 3:31 AM
Pranjal Srivastava
Pranjal Srivastava - avatar
6 Respuestas
+ 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
10th Dec 2017, 5:35 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 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.
10th Dec 2017, 3:43 AM
Hrishikesh Kulkarni
Hrishikesh Kulkarni - avatar
+ 1
what is thread?
10th Dec 2017, 3:45 AM
Pranjal Srivastava
Pranjal Srivastava - avatar
0
Thread is inbuilt class in java
10th Dec 2017, 3:47 AM
Hrishikesh Kulkarni
Hrishikesh Kulkarni - avatar
0
okay
10th Dec 2017, 3:48 AM
Pranjal Srivastava
Pranjal Srivastava - avatar
0
okay
10th Dec 2017, 8:18 AM
Pranjal Srivastava
Pranjal Srivastava - avatar