The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+13 votes

System calls are usually invoked by using

  1. a software interrupt
  2. polling
  3. an indirect jump
  4. a privileged instruction
asked in Operating System by Veteran (52.1k points) | 4.4k views
Ans A

2 Answers

+26 votes
Best answer
Software interrupt is the answer.

Privileged instruction cannot be the answer as system call is done from user mode and privileged instruction cannot be done from user mode.
answered by Veteran (414k points)
selected by
what about polling and indirect jump?

System calls are Virtual Instructions. Instructions can be invoked by Interrupts.

Explanations are already given for options (A) and (D).

(C) is wrong.It is jump to fixed locations.

(B) is wrong.polling is the approach where the CPU repeatedly checks the status of a device for exchanging data.


Note: Implementing system calls requires a transfer of control from user space to kernel space, which involves some sort of architecture-specific feature. A typical way to implement this is to use a software interrupt or trap. Interrupts transfer control to the operating system kernel, so software simply needs to set up some register with the system call number needed, and execute the software interrupt.

+14 votes
answered by Active (4.6k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,811 questions
54,540 answers
75,603 users