Java Multi-Threading Question: Download Questions PDF
What are the advantages or usage of threads in Java?
![Java Multi-Threading Interview Answer Java Multi-Threading Interview Question](https://globalguideline.com/public/images/interview/33.png)
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.
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 Interview Questions And Answers
PDF
Previous Question | Next 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? |