|
|
1.1 ! root 1: .ds ZZ DEVELOPMENT PACKAGE ! 2: .TH SLEEP 3R "630 MTG" ! 3: .XE "sleep()" ! 4: .XE "nap()" ! 5: .SH NAME ! 6: sleep, nap \- suspend program execution ! 7: .SH SYNOPSIS ! 8: \f3 ! 9: void sleep (nticks) ! 10: .sp ! 11: void nap (nticks) ! 12: .sp ! 13: unsigned int nticks; ! 14: \fR ! 15: .SH DESCRIPTION ! 16: The ! 17: .I nap ! 18: function ! 19: busy loops for ! 20: .I nticks ! 21: ticks of the 60 Hz internal clock. ! 22: To avoid interfering with screen refresh, ! 23: programs drawing rapidly changing scenes should ! 24: .I nap ! 25: for a couple ticks ! 26: between updates ! 27: to synchronize the display and memory. ! 28: .PP ! 29: The ! 30: .I sleep ! 31: function ! 32: is identical to ! 33: .I nap ! 34: except that it gives up the processor for the interval. ! 35: \f2Sleep\f1 should be used in preference to \f2nap\f1 unless there is some ! 36: reason why other applications should not be allowed to run. ! 37: A process ! 38: that never calls ! 39: .I wait ! 40: or ! 41: .I sleep ! 42: can lock out all other 630 MTG processes. ! 43: .PP ! 44: .SH SEE ALSO ! 45: resources(3R).
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.