Operating Sstems(can someone please help me with this)

  1. mathslover profile image71
    mathsloverposted 6 years ago

    A job running in a system, with variable time quantums per queue, needs 30 milliseconds to run to completion. If the first queue has a time quantum of 5 milliseconds and each queue thereafter has a time quantum that is twice as large as the previous one, how many times will the job be interrupted and on which queue will it finish its execution?

    1. OpticIllusions profile image79
      OpticIllusionsposted 5 years ago in reply to this

      Mathslover, did you ever find the answer to this question? I'm very interested in understanding the problem and solution for this.

    2. FitnezzJim profile image88
      FitnezzJimposted 5 years ago in reply to this

      I'll guess that this job gets interrupted twice and completes on it's third cycle, when 5+10+20 millisconds is greater than 30 milliseconds.  Assuming, of course, zero time for process swapping.