GATE CSE
First time here? Checkout the FAQ!
x
+1 vote
105 views

Here what are the number of context switches ? Is it 5 or 6? Do we consider context switch before P1 (i.e during the start) ?

asked in Operating System by Loyal (4.3k points) 3 19 72 | 105 views
5 we dont count the starting one until it is mentioned in the question.

2 Answers

0 votes

context switch occurs when a computer’s CPU switches from one process or thread to a different process or thread.

It should be 5.

answered by Loyal (2.6k points) 7 37
0 votes
Here total 5 context switches ocur .

`p1 - p2

p2 - p3

p3- p4

p4 - p1

p1- p3

 

during start there is context switch but we don't consider that case.
answered by Veteran (62k points) 14 138 556


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Top Users Oct 2017
  1. Arjun

    23324 Points

  2. Bikram

    17048 Points

  3. Habibkhan

    7808 Points

  4. srestha

    6222 Points

  5. Debashish Deka

    5430 Points

  6. jothee

    4958 Points

  7. Sachin Mittal 1

    4772 Points

  8. joshi_nitish

    4286 Points

  9. sushmita

    3964 Points

  10. Rishi yadav

    3794 Points


Recent Badges

Nice Comment junaid ahmad
Popular Question iarnav
Notable Question makhdoom ghaya
Popular Question LavTheRawkstar
Avid Voter atul_21
Popular Question hem chandra joshi
100 Club nikhil_cs
Notable Question Sukannya
Notable Question Sourabh Kumar
Notable Question shikharV
27,287 questions
35,134 answers
83,911 comments
33,223 users