retagged by
81 views
1 votes
1 votes

Which of the following statements is/are true regarding how the trap instruction (e.g., int n in x86) is invoked when a trap occurs in a system? 

  1. When a user makes a system call, the trap instruction is invoked by the kernel code handling the system call 

  2. When a user makes a system call, the trap instruction is invoked by userspace code (e.g., user program or a library) 
  3. When an external I/O device raises an interrupt, the trap instruction is invoked by the device driver handling the interrupt
  4. When an external I/O device raises an interrupt signaling the completion of an I/O request, the trap instruction is invoked by the user process that raised the I/O request
retagged by

Please log in or register to answer this question.

Related questions

1.8k
views
1 answers
0 votes
rahul sharma 5 asked Dec 7, 2017
1,772 views
when the interrupt occurs ,thena: process switching may be thereb: context saving must be therec: both a and bd.None of these
1.0k
views
1 answers
0 votes
its_vv asked Jul 1, 2022
1,047 views
Both internal and software caused by executing the program instructions . So both are same ?
424
views
0 answers
0 votes
pC asked Oct 7, 2016
424 views
When compiler finds there is a System Call then what are the activitites taking place ?Activities involved in Mode shifting process from user to kernal mode and back.
857
views
2 answers
3 votes
Souvik33 asked Dec 2, 2022
857 views
MSQA ‘Running’ process is surely put into ‘Blocked/Wait’ state during while requesting for an I/O, in which of the following I/O modes?Synchronous I/OAsynchronous I/OInterrupt Driven I/ODMA