Is there an alternative for sleep() in C?

Posted by Manoj Doubts on Stack Overflow See other posts from Stack Overflow or by Manoj Doubts
Published on 2008-11-05T04:33:24Z Indexed on 2010/04/21 15:53 UTC
Read the original article Hit count: 186

Filed under:
|
|

In traditional embedded programming, we will give a delay function like so:

for(i=0;i<255;i++)
   for(j=0;j<255;j++);

In the microprocessor's view, is this how the sleep() function works?

Is there an alternative for the sleep() function in C?

© Stack Overflow or respective owner

Related posts about c

    Related posts about delay