Subversion Repositories programming

Rev

Rev 419 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 419 Rev 420
Line 200... Line 200...
200
                numprocs++;
200
                numprocs++;
201
                totalwait += e.proc.time_wait;
201
                totalwait += e.proc.time_wait;
202
            }
202
            }
203
        }
203
        }
204
 
204
 
205
        System.out.printf ("Average wait time: %d wait time / %d procs = %.2f\n",
205
        System.out.printf ("Average Wait Time: %d time units / %d procs = %.2f\n",
206
                totalwait, numprocs, (float)totalwait / (float)numprocs);
206
                totalwait, numprocs, (float)totalwait / (float)numprocs);
207
    }
207
    }
208
 
208
 
209
    /**
209
    /**
210
    * Find the average turnaround time of this scheduler.
210
    * Find the average turnaround time of this scheduler.
Line 244... Line 244...
244
        //    System.out.println (e);
244
        //    System.out.println (e);
245
 
245
 
246
        /* Gantt Chart */
246
        /* Gantt Chart */
247
        printGanttChart ();
247
        printGanttChart ();
248
 
248
 
249
        /* Print time taken */
249
        /* Print statistics */
250
        printWaitTimes ();
250
        printWaitTimes ();
251
        printTurnaroundTimes ();
251
        printTurnaroundTimes ();
252
        System.out.println ("Simulation took " + cur_time + " time units to complete!");
252
        System.out.println ("Simulation took " + cur_time + " time units to complete!");
253
    }
253
    }
254
}
254
}