hogs -n -%10
If you're using the IDE, you can use the System Information perspective to watch the threads migrate.
#include <stdlib.h> int main( void ) { while (1) { } return EXIT_SUCCESS; }
qcc -o greedy greedy.c ./greedy &
On a uniprocessor system, this would consume all the processing time (unless you're using adaptive partitioning). On a multicore system, it consumes all the time on one processor.