Anonymous user menu

Indicate whether the following instruction should be restricted to kernel mode or available in user mode ?

For each of the following six instructions, indicate whether the instruction should be restricted to kernel mode or available in user mode. Explain your selection for each instruction.

a. Read shared memory ________
b. Read from disk ________
c. Change to user mode ________

2Comments
Vivek Vikram Singh @vivek14
3 May 2016 03:41 pm

A) Reading should not a problem. So NOT privilege.
B) Same as above
C) Changing mode is Privileged instruction.

Rajeev Kr @testusr
3 May 2016 03:41 pm

Here is my take on this:
a. Read shared memory : Not Sure
b. Read from disk : Not a previleged instruction, should be done in User Mode
c. Change to user mode: Mode Shift is a previleged instruction, should be done in Kernel Mode

@innovwelt please see if I am correct.