|
Not sure that CPU utilization could be decreased at all in this scenario. Code loads processor heavily without any yields, so...
How much time does it get to perform 2000 cycles, by the way ?
I'd understand the goal "decrease execution time from 20 secs to 5 secs", but decreasing CPU utilization itself...Well, usage of Thread.sleep(10) will give some relief to CPU but not sure that this is your real intent.
|