5 votes
1 answer
3
How many pairs $(x,y)$ such that $x+y <= k$, where x y and k are integers and $x,y>=0, k 0$.Solve by summation rules.Solve by combinatorial argument.
1 votes
1 answer
7
what is the output of the following program?int ret = fork(); if(ret == 0) { exec(some_binary); // this call fails printf("child "); }else { wait(); printf("parent\n"); }...
0 votes
0 answers
8
Consider a process in kernel mode that acquires a spin-lock. For correct operation, it must disable interrupts on its CPU core for the duration that the spin-lock is held...
0 votes
1 answer
9
The read system call to fetch data from a file always blocks the invoking process.[True / False] [blocking means context switching to another process]
0 votes
1 answer
10
When a process opens a file that is already being read by another process, the file descriptors in both process will point to the same open file table entry.[True / False...
0 votes
2 answers
11
The fork system call creates new entries in the open file table for the newly created child process. [True / False][ what is open file table ? ]
0 votes
0 answers
12
The four privileged modes (Ring 0 to Ring 3 as provided by x86) are the minimum levels of execution modes required for an operating system to operate correctly
0 votes
0 answers
13
Illustrate the sequence of events/steps for invocation and execution of a system call. Starting from the user level call and back.
0 votes
0 answers
15
Give an example each for a hardware interrupt, an explicit software interrupt, and an implicit software interrupt, and discuss the possible operations as part of the inte...
0 votes
0 answers
16
A system call operates in a process context. Give an example and explain this statement.
0 votes
1 answer
17
A one-to-one mapping of the entire physical address space to a process's virtual address space is a correct address translation solution. True/False. Explain.
0 votes
1 answer
18
A page table based translation will always consume less memory to store translation meta-data, than a seg-mentation based solution. True/False. Explain.