Accenture interview question

How to take thread dump?