A state is in situation if the system can allocate resources to each process in some order and still avoid a deadlock.
safe
unsafe
waiting
mutually excluded
Answer: Option A.
What will the output of the following program:
#include
int iVal1=50;
int&fnSample()
{ int iVal1=20;
::iVal1=iVal1; iVal1=10; return::iVal1;
} int main(int argc,char**argv)
{ int&iRef=iVal1; iRef=30; iRef=fnSample(); iRef=40; cout< }
10
20
30
40
Answer: Option D.
Virtual memory allows:
Execution of a process that may be completely in memory
A program to be larger than the physical memory
A program to be larger than these secondary storage
Execution of a process without being in physical memory