While the sleep() function is executed, can another method in the same program run?

If not, how can I make 1 method run while the other is delayed?