I\'m writing an application that will have multiple threads running, and want to throttle the CPU/memory usage of those threads.
There is a similar question for C++,
Why not instead of doing "threading" do cooperative multitasking, would be interesting to see if you can manipulate http://www.janino.net/ to run a program for a certain amount of time/set of intstructions, then stop and run the next program. At least that way its fair, give everyone the same time slice...