reshown by
327 views
2 votes
2 votes

Mode Switch

Validate the following statements:

1. Kernel To User Mode Switch can be done by a Non Privileged Instruction. eg Return From Interrupt.  True

2. Kernel To User Mode Switch can be done by a Non Privileged Instruction. eg Return From Exception.  True

3.User to Kernel mode can be done by a Non Privileged instruction.  True

Reason based on my understanding: (A non privileged instruction can generate a system call to switch to Kernel mode)

4 User to Kernel mode switch is an example of Priviliged Instruction. False

5. Return From Interrupt is a non privileged instruction.  True

6. Return From Exception is a privileged instruction.      True

7. User To Kernel Mode switch can be done via system call(software interrupt), Hardware interrupt( getting output via a printer) as well as exception. True

Please validate these and help me understand if I am wrong.

reshown by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
2
1 votes
1 votes
1 answer
3
sanyam53 asked Jan 7, 2017
1,675 views
How many time context switch in Round Robin? ( if only one process remain in ready queue at end of scheduling does that count every time, when time slice over or only one...
0 votes
0 votes
0 answers
4
dd asked Sep 15, 2018
311 views
Consider a process in kernel mode that acquires a spin-lock. For correct operation, it must disable interrupts on its CPU core for the duration that the spin-lock is held...