title: How to calculate average waiting time of Round robin scheduling?
body: <p>Given this table  :
  <img src="https://i.stack.imgur.com/QRlKw.gif" alt="enter image description here"></p>
  
  <p>Those are the time lines (time slice = 4) : </p>
  
  <pre><code>|p1|p1|p2|p3|p4|p5|p1|p2|p3|p4|p5|p2|p3|p4|p5|p2|p3|p4|p5|p2|p3|p3|
  0  4  8 12 16  20 24 28 32 36 40 44 48 52 56 60 64 68 69 72 75 79 80
  </code></pre>
  
  <p>Is there a simple way to calculate the average waiting time ? </p>
  
  <p>Thanks </p>
  
  <p><strong>Note:</strong> that there are several finish times for each process !</p>
  
  <p><strong>Note2</strong> : This question also involved priority algorithm as a side exercise , please disregard the priority column for the Round robin algorithm</p>