Categories

Digital logic - Computer Organization architecture - Operating systems

CSE - Digital logic - Computer Organization architecture - Operating systems
Question:-
Option (A)
m + log2 l
Option (B)
l + log2m
Option (C)
Option (D)
2l+m
Correct Option:
B
Question Solution:
LAS = No. of pages * Page size
= 2l * m
LA = log2 LAS
LA = log2(2l * m)
= l + log2m
Question:-
Option (A)
Internal fragmentation
Option (B)
External fragmentation
Option (C)
Both (a) and (b)
Option (D)
None of these
Correct Option:
C
Question Solution:
Contiguous allocation leads to both internal and external fragmentation. A file is still allocated in disk block units, which means the last block in a file would be half empty (internal fragmentation). Additionally contiguous allocation result in external fragmentation because it could be the case that there many small unallocated fragments between files and they cannot be used to allocate a file where size is greater than the size of any fragment but less than the total size of the free space.
Question:-
Option (A)
5
Option (B)
6
Option (C)
7
Option (D)
8
Correct Option:
C
Question Solution:
In the program the parent process creates a child and then waits for the child to exist (through the system call "wait"). The child executes and prints out the value of val, which is "6" after the v++ statement. The child then returns the value of val to the parent, which receives it in the argument to "wait (&val)". The parent then prints out the value of val, which is now 7. The parent and the child have separate copies of the variable "val".
Question:-
Option (A)
A context switch
Option (B)
A trap to a specific location in the interrupt vector
Option (C)
Control passes to a service routine, which runs in monitor mode
Option (D)
Monitor determine what system call has occurred but monitor not able to verify that the parameters passed are correct and legal
Correct Option:
D
Question Solution:
A system call involve that the monitor determines what system call has occurred and verifies the parameter passed are correct and legal.