Wednesday 3 June 2020

UGC NET Computer Science December 2019 | Question 81

Question 81
Which of the following methods are used to pass any number of parameters to the operating system through system calls?
  1. 1. Registers
  2. 2. Block or table in main memory
  3. 3. Stack
  4. 4. Block in main memory and stack
Answer : 4. Block in main memory and stack

Explanation
System Call Parameter Passing
Often, more information is required than simply identity of desired system call
Exact type and amount of information vary according to OS and call

Three general methods used to pass parameters to the OS
  1. Simplest: pass the parameters in registers
  2. In some cases, may be more parameters than registers. Parameters stored in a block, or table, in memory, and address of block passed as a parameter in a register. This approach taken by Linux and Solaris
  3. Parameters placed, or pushed, onto the stack by the program and popped off the stack by the operating system
Block and stack methods do not limit the number or length of parameters being passed

So, option 4 is correct answer

Please go to page number 17 of below attached PDF for more details:

Reference : OPERATING SYSTEMS Lecture Notes

PreviousNext
UGC NET CS December 2019 - Question 80UGC NET CS December 2019 - Question 82

No comments:

Post a Comment

UGC NET Computer Science December 2019 | Question 16

Question 16 In a certain coding language. 'AEIOU' is written as 'TNHDZ'. Using the same coding language. 'BFJPV' wil...

Popular Posts