Content-type: text/html Manpage of spin

spin

Section: User Commands (1)
Index Return to Main Contents
 

Name

spin - dead loop for the specified interval  

Syntax

spin milliseconds

cpuspin milliseconds  

Description

Spin pauses for the specified number of milli-seconds.

Cpuspin runs in a CPU bound loop for the specified number of milli-seconds.

Use spin where you would use "sleep", but want a shorter interval, or a more precisely defined interval.  

Arguments

milliseconds - the number of thousandths of a second to wait for.  

Example

$ time cpuspin 400

real        0.4
user        0.1
sys         0.2
 

Environment

PATH=$PATH:/home/joppa/fastpac/bin/{HPPA,RISC}

MANPATH=$MANPATH:/home/joppa/fastpac/release_2/doc/60.Manuals  

Known Bugs

The implementation uses considerable CPU resource. I am sure someone will find some more.  

Author

David Horton - CiTR  

Copyright

Centre for Information Technology Research, 1993


 

Index

Name
Syntax
Description
Arguments
Example
Environment
Known Bugs
Author
Copyright

This document was created by man2html, using the manual pages.
Time: 23:34:46 GMT, September 27, 2019