Locking a thread when is not needed and resume it when is needed.

Printable View