How to do multi threading in java? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

How to do multi threading in java?

How to simultaneously perform two processes at the same time?

21st Sep 2017, 4:03 PM
Debtanu Mukherjee
Debtanu Mukherjee - avatar
1 Réponse
+ 7
You simply start a new thread and perform the actions in it's run method. The simultaneous actions can be performed in the main thread that is already running. See this tutorial: https://www.tutorialspoint.com/java/java_multithreading.htm
21st Sep 2017, 4:11 PM
Tashi N
Tashi N - avatar