Note: You are currently viewing my old web site. There is a new version with most of this content at OJB.NZ.
The new site is being updated, uses modern techniques, has higher quality media, and has a mobile-friendly version.
This old site will stay on-line for a while, but maybe not indefinitely. Please update your bookmarks. Thanks.


[Index] [Menu] [Up] Title[Header]
Tips

(Up to OJB's Mac Tips List Page)


Make the CPU Work Hard

How to Make the CPU Work Hard

First, why would you want to do this? Maybe for testing, to check the responsiveness of the computer under load. Also to force the fans to run to check that they work, and also to help clear water in case of a water spill!

Use this command: yes > /dev/null &

This creates a background task which will send the word "yes" as often as possible (it is usually used to answer commands with repeated prompts to continue).

Repeat the command to create more threads. Do this as often as necessary to put the required load on the computer.

When your testing is complete, terminate them all with: killall yes


[Up]

[Contact][Server Blog][AntiMS Apple][Served on Mac]