Context-Switching

Question 1
Time taken to switch between user and kernel models is___the time taken to switch between two processes.
A
More than
B
Independent of
C
Less than
D
Equal to
       Operating-Systems       Context-Switching       KVS 22-12-2018 Part-B
Question 1 Explanation: 
Context switch between the processes involves kernel mode.So the time taken to switch between user and kernel models is less compared to switching between the processes
Question 2
In which of the following scheduling criteria, context switching will never take place ?
A
ROUND ROBIN
B
Preemptive SJF
C
Non-preemptive SJF
D
Preemptive priority
       Operating-Systems       Context-Switching       UGC NET CS 2018 JUNE Paper-2
Question 2 Explanation: 
ROUND ROBIN : In this because of time quantum context switching will take place
Preemptive SJF : In this context switching will take place if a smaller burst time process arrives in ready queue.
Non-preemptive SJF: Since it is non-preemptive SJF scheduling so a process will leave CPU only when it is completely executed.
Preemptive priority : In this Context switching will take place if a process with higher priority enters the ready queue.
There are 2 questions to complete.
PHP Code Snippets Powered By : XYZScripts.com