Java Multi-Threading Question:

What are the advantages or usage of threads in Java?

Tweet Share WhatsApp

Answer:

Following are the advantage of using threads in Java.

Threads support concurrent operations. For example, Server can handle multiple requests coming from different clients by managing separate thread for each request.
Threads often result in simpler programs. Updating of separate views can be managed by separate Thread to give continuous updates.
Threads provide a high degree of control on application.
Threading gives the concurrency in our application by simplified coding.
Using threading, a computer with more than one CPU can execute multiple threads on different functional units without using time sharing.
The cost of communication between threads is relatively low.

Download Java Multi-Threading PDF Read All 36 Java Multi-Threading Questions
Previous QuestionNext Question
What happens if we invoke run method without calling the start method for a thread instance?Explain the method of Runnable interface with example?