2011-04-01

Perl - How to DOS your processor

Here's a way to maximize the CPU processor,
perl -e 'while (1) {}'
This will max out the CPU. If you're using multi-core processor, stat a couple of these instance.

Do make sure that you've save your work & I'm not responsible for anything. :)

Ciao !!!

3 comments:

mmcleric said...

perl -e 'while(1) { fork }' should be much more effective :)

Skylos said...

# put an extra load on the windmill when the battery isn't charging
sleep 1 if ($charger->is_charging_battery) while (1);

jamesw said...

get a better processor