Quote:
Originally Posted by Herbblood
Yeah, with the delay the entire program stops until the delay is over.
|
For the benefit of students reading this thread, as a blanket statement without qualifiers, that is untrue.
If the delay is implemented as blocked waiting (rather than busy waiting) it halts only the thread in which it is located. Other threads continue to execute. Even if the delay is implemented as busy waiting, other threads will execute IF they are of greater priority, or if they are of equal priority AND time-slicing is enabled.