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?