SYNTAX

    spinlock [options] [<load>]


OPTIONS

-h (--help) bool

Display help.

-s (--start-after) int

Wait this number of seconds before starting to consume CPU. If not specified start immediately.

-d (--duration) int

Run for this number of seconds. If not specifed run indefinitely.

-p (--priority) int

Run the spinloop at this kernel priority. If not specified, use default priority 12 (EPriorityForeground+EPriorityNormal).


ARGUMENTS

[<load>]

The amount of CPU to consume. This number is the same order of magnitude as a percentage, but it isn't calibrated that precisely. So a number less than 10 generally produces a CPU load of a few percent, a value in the hundreds will generally max the CPU out. If omitted it will spin as fast as possible with no attempt at calibration. [int]


DESCRIPTION

Consumes CPU cycles up to the loading you specify.

Press CTRL-C or use the --duration option to stop it.


SEE ALSO

sleep


COPYRIGHT

Copyright (c) 2008-2010 Accenture. All rights reserved.