Answers

Question and Answer:

  Home  Java Multi-Threading

⟩ What are the advantages or usage of threads in Java?

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.

 153 views

More Questions for you: