Question 81
Explanation
Which of the following methods are used to pass any number of parameters to the operating system through system calls?
Answer : 4. Block in main memory and stackExplanation
Previous | Next |
UGC NET CS December 2019 - Question 80 | UGC NET CS December 2019 - Question 82 |
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
-
Simplest: pass the parameters in registers
-
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
-
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 passedSo, option 4 is correct answer
Please go to page number 17 of below attached PDF for more details:
Reference : OPERATING SYSTEMS Lecture Notes