/* This program illustrates an endless loop with sleeping. */ #include int main() { /* Simply loop forever, except with a 1 second sleep between iterations. CPU isn't eaten up. */ while (1) sleep(1); return 0; }