A method for managing CPU time consumption, involving obtaining a
per-polling period CPU consumption time associated with an isolate
executing on a virtual machine for each of a plurality of polling
periods, computing a usage rate for the isolate over a usage period using
the per-polling period CPU consumption time associated with each of the
plurality of polling periods within the usage period, comparing the usage
rate to a specified rate associated with the isolate, and suspending the
isolate in the virtual machine if the usage rate exceeds the specified
rate.