Research Article

Mcredit2: Enhanced High-Performance Xen Scheduler via Dynamic Weight Allocation

Algorithm 3

Load test.
 1: begin
 2:  Input: the number of threads: n
 3:  Output: error number: err_num
 4:  // infinite loop
 5:  loop
 6:    // impose load
 7:    forvar i < 10000000 do
 8:    i ← i+1;
 9:    end
10:    // stop to impose
11:  usleep(200000);
12:  end
13: end