UGCNET-Dec2014-III: 02

1 vote
1.4k views

For switching from a CPU user mode to the supervisor mode following type of interrupt is most appropriate

1. Internal interrupts
2. External interrupts
3. Software interrupts
4. None of the above

ans will be C

as internal interrupts occur due to some internal error (like division by zero)

external interrupts occur due some h/w event  like power failure etc

software interrupts or system calls are the most appropriate method for switching from a user mode to kernel mode

examples ctr+C , int 86 etc.

selected by
OPTION C IS CORRECT

Related questions

1
756 views
Which of the following versions of Windows $O.S$. contain built-in partition manager which allows us to shrink and expand pre-defined drives ? Windows Vista Windows $2000$ Windows NT Windows $98$
1 vote
Monitor is an Interprocess Communication $(IPC)$ technique which can be described as It is higher level synchronization primitive and is a collection of procedures, variables, and data structures grouped together in a special package. It is a non-negative integer which apart ... implemented as system calls to block the process when they are not allowed to enter critical region to save $CPU$ time.
An operating system has $13$ tape drives. There are three processes $P1, P2$ & $P3$. Maximum requirement of $P1$ is $11$ tape drives, $P2$ is $5$ tape drives and $P3$ is $8$ tape drives. Currently, $P1$ is allocated $6$ tape drives, $P2$ is allocated $3$ tape ... is allocated $2$ tape drives. Which of the following sequences represent a safe state? $P2 P1 P3$ $P2 P3 P1$ $P1 P2 P3$ $P1 P3 P2$
Consider an imaginary disk with $40$ cylinders. A request come to read a block on cylinder $11$. While the seek to cylinder $11$ is in progress, new requests come in for cylinders $1, 36, 16, 34, 9$ and $12$ in that order. The number of arm motions using shortest seek first algorithm is $111$ ​ $112$ $60$ $61$