Java Multi-Threading Question: Download Questions PDF
How to debug our application for issues when multiple threads are being executed?
![Java Multi-Threading Interview Answer Java Multi-Threading Interview Question](https://globalguideline.com/public/images/interview/33.png)
Answer:
Following are some way to debug issues in multi-threaded applications in Java.
-By using logging and print statements along with thread names. In this way we can know about the flow of thread execution.
-With the use of debugging functionality available in Eclipse and JDeveloper.
-We can write a thread dump of the application which will give the information about the active threads at a point of time.
This is most effective way for detecting deadlocks in production systems.
-By using logging and print statements along with thread names. In this way we can know about the flow of thread execution.
-With the use of debugging functionality available in Eclipse and JDeveloper.
-We can write a thread dump of the application which will give the information about the active threads at a point of time.
This is most effective way for detecting deadlocks in production systems.
Download Java Multi-Threading Interview Questions And Answers
PDF
Previous Question | Next Question |
What is thread Local variable? | Explain deadlock? |