You can use the program (or thread) in which sleep() is responsible for suspending execution for a predetermined amount of seconds. The sleep() function can stop the program's execution the whole time unless some signal disrupts it.