By Mala Gupta , author of OCP Java SE 7 Programmer II Certification Guide
Imagine while debugging or testing your code, you need to reproduce a bug and you need to make a thread pause its execution and give up its current use of the processor. In this article, we discuss some methods you can use to do that.