Why do we use threads?

Why do we use threads?
Answer
In one word, we use Threads to make Java application faster by doing multiple things at the same time. In technical terms, Thread helps you to achieve parallelism in Java programs. … By using multiple threads in Java you can execute each of these tasks independently.
 

Tìm kiếm

Back
Top