The documentation is confusing me on this.

What I want is having a thread sleep until I give it a GO signal. How would I do this? I have looked into sleep() and interrupt(), but I don't really understand it. What does the "interrupted" state mean? Is it related to the running state of the thread? If yes, how? If no, how do I get the running state?

I want to be able to stop the thread again with another signal. How would I do that? suspend, stop etc. are deprecated.

Thanks in advance