System Software and Operating System - Process Management

4. Consider a set of 5 processes whose arrival time. CPU time needed and the priority are given below

Process PriorityArrival Time (in ms)CPU Time Needed (in ms)Priority
P10105
P2052
P3231
P45204
P51023
smaller the number, higher the priority.
If the CPU scheduling policy FCFS, the average waiting time will be

  • Option : A
  • Explanation : According to FCFS process solve are p1 p2 p3 p4 p5 so
    for p1 waiting time =0 process time=10 then
    for p2 waiting time = (process time of p1-arrival time of p2)=10-0=10 then
    for p3 waiting time = (pr. time of (p1+p2)-arrival time of p3)=(10+5)-2=13 and
    same for p4 waiting time=18-5=13
    same for p5 waiting time=38-10=28
    So total average waiting time=( 0+10+13+13+28)/5=12.8
    So answer is 'A'.
    0 + 10 + (15- 2) + (18 5) + (38- 10) divided by 5, i.e. 12.8 ms.
    Note : Here we will not see priority, we only see who comes first. And here both p1 andp2 came simultaneously and so we take p1 first and it gives answer which matches in option.
Cancel reply
Cancel reply

5. Consider a set of 5 processes whose arrival time. CPU time needed and the priority are given below

Process PriorityArrival Time (in ms)CPU Time Needed (in ms)Priority
P10105
P2052
P3231
P45204
P51023
smaller the number, higher the priority.
If the CPU scheduling policy is SJF, the average waiting time (without pre-emption) will be

  • Option : C
  • Explanation : 8 + 0 + 3 + 15 + 8 divided by 5, i.e. 6.8 ms.
Cancel reply
Cancel reply
  • Process Management Questions can be used to give quizzes by any candidate who is preparing for UGC NET Computer Science
  • This Process Management Questions section will help you test your analytical skills in a tricky method, thereby giving you an edge over other students
  • Any student who wants to prepare for DOEACC A Level, DOEACC B Level, and DOEACC C level can also use these Objective Type Questions Answer.
  • All candidates who have to appear for the Kendriya Vidyalaya Entrance exam can also refer to this mcq section.
  • You can also get access to the Process Management MCQ ebook.
  • Process Management Questions can be used in the preparation of JRF, CSIR, and various other exams.
  • You can also download pdf for these Process Management multiple-choice questions Answers.
  • This Process Management Multiple Choice Questions Answers section can also be used for the preparation of various competitive exams like UGC NET, GATE, PSU, IES, and many more.
  • Process Management Questions can be used to gain a credit score in various undergraduate and postgraduate courses like BSc, MSc and MCA
  • Process Management Questions for UGC NET Computer Science

    Process Management MCQ

    Process Management Multiple choice questions