title: How to scheduling the processes
body: <p>I have problem with scheduling the processes homework and i need help.</p>
  
  <p>Process         P1    P2    P3     P4   P5
  Service time    120   60    180    50   300</p>
  
  <pre><code>Draw a Gantt chart that shows the completion times for each process using 
  </code></pre>
  
  <p>the following CPU scheduling: </p>
  
  <ol>
  <li><p>first-come, first served CPU</p></li>
  <li><p>shortest-job-first</p></li>
  <li><p>round-robin with a time slice of 60. </p>
  
  <p>Priority    Arrival Time        Service Time
  P0  1               3                  5
  P1  2               2                  6
  P2  1               4                  7
  P3  2               1                  3</p></li>
  <li><p>Draw a Gantt chart that shows the completion times for each process using each of the following CPU Scheduling Techniques (non-preemptive). Then Calculate the Average Waiting Time and the Average Turn Around Time for each Case.
  a)  first-come, first served 
  b)  Shortest-Job-First
  c)  Priority Scheduling
  d)  Round Robin Scheduling ( q = 5)</p></li>
  </ol>