Skip to content
Sharp

Performance Tuning · interview question

How does the 'jstack' tool help in diagnosing a deadlock situation?

Multiple choiceMediumchapter-14-curatedpremiumperformance-tuningthread-dumps
Choose one answer
Answer and explanation

Correct answer

C. By showing threads and their current states

Why

The 'jstack' tool generates a thread dump which includes the current state of each thread. This information can reveal if threads are waiting for locks held by each other, indicating a deadlock.

Test yourself on Performance Tuning

A free test with instant, explained results. No account needed.

Start free test
All Performance Tuning questions →