what is threading in java? how to use it? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

what is threading in java? how to use it?

24th Dec 2016, 6:46 PM
vishal shirke
vishal shirke - avatar
2 Respuestas
+ 1
A thread is a process, and multithreading is running multiple threads at the same time. You can start a separate thread like this: new Thread(new Runnable() { @Override public void run() { //Imaginary Code A } }).start(); //Imaginary Code B In this example, Imaginary Code A and B will run independently of each other
25th Dec 2016, 4:58 AM
Gabe Rust
Gabe Rust - avatar
0
thank u Gabe Rust
25th Dec 2016, 6:12 AM
vishal shirke
vishal shirke - avatar