Log in

No account? Create an account
   Journal    Friends    Archive    Profile    Memories

Just a Warm-Up - morfizm

Jul. 10th, 2012 11:23 am Just a Warm-Up

Originally posted by rss_thedailywtf at Just a Warm-Up

Brian worked for the American government. Specifically, he worked for a small branch on a very small project with a budget so small that it was governed by the laws of quantum mechanics. To cut costs, the pointy-haired, grey-suited bureaucrats that ran the office found all sorts of inventive ways to save money, most of which were just minor nuisances that could generally be ignored.

One particularly annoying technique, however, was that they set the thermostats at 55ºF, then locked them in plastic cages so that those pesky and expensive developers wouldn't waste precious government funds on wasteful things like "heat", "comfort" and "having fingers that aren't blue at the tips". In a state like Hawaii, that might not have been a problem, but these poor developers lived in the other non-contiguous state in the Union, in a place where the average summer temperature was a hair shy of 60ºF.

One day, while shivering at his keyboard, Brian recognized this situation as a problem. Brian had two options: he could use his skills at office politics to raise a complaint and get the temperature issue addressed, or he could use his skills as a developer to come up with a different solution. Since he was a programmer, and hence terminally uninterested in office politics (sub-type: government office politics), he decided to try and program his way out of this situation.

static void Main(string[] args) { while (true
) { } }

Brian compiled that down into "heater.exe" and deployed it to every machine in the developers' team room, along with a short launcher script that would fire up the program at a very low priority. By hosting it on every machine, they had a crude way of managing temperature. During the summer, they'd usually run it on only one machine. During the coldest parts of winter, every computer would be running at 100% CPU utilization.

If their keepers noticed that the electricity bill skyrocketed at around the same time the developers stopped complaining about being cold, they didn't say anything. Brain walked away from that job having learned a valuable lesson: if there's a problem that can't be solved with a clever program, is that problem really worth solving?

Lame. I'd write, at least, something multithreaded, plus constant disk I/O and 3D graphics.

4 comments - Leave a commentPrevious Entry Share Next Entry


Date:July 10th, 2012 06:43 pm (UTC)
you don't need to do multithreaded - just run multiple instances :) also I don't think heat output grows a lot with more cores occupied.

disk i/o will hinder developer productivity :)
Date:July 10th, 2012 09:00 pm (UTC)
Heat output does grow when more cores are used. There are specialized programs for producing as much heat as possible - I used one when testing home-assembled computer, the more cores you enable, the hotter CPU runs.
Date:July 10th, 2012 10:39 pm (UTC)
yes. the question is how dramatical the change of power comparing to a single core working and CPU in idle state.
Date:July 10th, 2012 07:12 pm (UTC)