Shlrm.org Blag

Groovy

Groovy Threading and Java Threading

by David Kowis on Nov.30, 2009, under Coding!, Groovy

I must be doing something wrong regarding my groovy code. I was talking to a friend and fiddling with a tower of hanoi solver code. Just burns in CPU basically. Now I hacked it up in groovy, after he talked about it, just because. Well I came up with a groovy-ish solution that should do the same thing his java code did. However, the Java code actually ran like 8 threads, whereas my groovy code only ran about 3. Based entirely on CPU usage in linux. On the same box. I don’t understand… The code follows. (continue reading…)

Leave a Comment :, , more...

Archives

Hacker’s Diet

The Hacker's Diet Online