The thread being scheduled must be a thread that is `ready' and not already `scheduled' or locked by a semaphore (see later sections). You can use rtkCurrentTask as parameter t, which causes the calling thread becomes inactive until the specified time.