0
what is threading in java? how to use it?
2 Respostas
+ 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
0
thank u Gabe Rust