It’s not asynchronous. You need to invoke start()
not run()
Run will execute the Runnable’s run method in the current thread. start will create a new thread which will invoke the run method.
0
solved Java Thread Hang
It’s not asynchronous. You need to invoke start()
not run()
Run will execute the Runnable’s run method in the current thread. start will create a new thread which will invoke the run method.
0
solved Java Thread Hang