Operating System - 2
Memory management and virtual storage concepts including page replacement algorithms, memory allocation techniques, fragmentation, paging, thrashing, and storage hierarchy.
Questions
Consider a buddy system memory allocation where the size of a free memory segment is 256 KB, and the memory of kernel is 33 KB. To fulfill the request of memory allocation, a memory block of size M from free memory pool is allocated. What is the size of M?
- 33 KB
- 64 KB
- Two blocks, one of size 32 KB and other of size 1KB
- Two blocks each of size 32 KB
- 256 KB will be allocated
Find out the total size of internal fragmentation in case of first fit algorithm.
undefined
- 609 KB
- 659 KB
- 719 KB
- 599 KB
- None of these
Consider a FIFO page replacement algorithm containing three frames. Initially, there is no page loaded in any of the frames. If the system first accesses 60 distinct pages in some order and then accesses the same pages in reverse order, calculate the total number of page faults.
- 120
- 114
- 117
- 60
- None of these
In demand paging, if average page fault service time is 7 millisecond, memory access time is 150 nanoseconds. A process 'P' executes successfully without replacing any frame. What is the effective access time?
- Insufficient data
- 3500075 milliseconds
- 150 nanoseconds
- 7 milliseconds
- 7000150 milliseconds
If a page fault occurs in step 5, which of the step(s) will execute again?
undefined
- Step 1 to step 5
- Step 2 to step 5
- Step 3 to step 5
- Step 4 and step 5 only
- Step 5 only
__________ helps us to distinguish the pages in the memory and the pages on the disk.
- Base register
- Limit register
- Dispatcher
- Valid-invalid bit
- TLB (Translation Look-Aside Buffer)
If a process is spending much more time in paging than executing, then this phenomenon is called __________.
- belady's anomaly
- page fault
- compaction
- thrashing
- none of the above
Local replacement algorithm is used to avoid
- thrashing
- fragmentation
- belady's anomaly
- starving
- deadlock
A process can be swapped out from the memory, if
i. its time quanta has expired in Round-robin scheduling
ii. higher priority process has arrived in priority scheduling
iii. a new process of less execution time has arrived in FCFS scheduling
- Only i
- Only i and ii
- Only i and iii
- Only ii and iii
- All of these
Demand paging is commonly used in ___________.
- paged memory management system
- segmented memory management system
- virtual memory management
- compaction
- none of these
Where does the swap space reside in the system?
- RAM
- Hard disk
- Optical device
- Pen drive
- None of these
Consider the following reference strings with three frames:
1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6.
Find out the total number of page fault, if LRU (Least Recently Used) page replacement algorithm is implemented.
- 11
- 16
- 21
- 15
- None of these
Which of the following is the fastest memory?
- Hard disk
- Dynamic RAM
- Static RAM
- Cache memory
- CD and DVD
Which of the following is/are the extension(s) of Batch file?
- bat
- btm
- Both 1 and 2
- bin
- zip
Attribute of file consists of _________.
- name
- identifier
- protection
- size
- all of these
Which of the following allows a user to erase the content of a file but keep its attributes?
- Deletion
- Creating a file
- Truncating a file
- Both 1 and 2
- None of these
Which of the following is/are the properties of storage devices?
(i) Its speed is slower than the primary memory.
(ii) It is cheaper than the primary memory.
(iii) It is non-volatile in nature.
- Only (i)
- Only (i) and (ii)
- Only (ii) and (iii)
- Only (i) and (iii)
- All of these
Consider the following data
| Job size in KB | |
| Execution Time in microseconds | |
| 6 | |
| 3 | |
| 9 | |
| 4 | |
| 3 | |
| 1 | |
| 5 | |
| 2 | |
| 11 | |
| 9 | |
| 20 | |
| 6 | |
| 2 | |
| 1 |
If the best fit algorithm is used for allocating jobs to memory partitions of sizes 4KB, 8KB, 20KB and 3KB, when will the 20KB job complete?
- 6 microseconds
- 19 microseconds
- 25 microseconds
- 15 microseconds
- None of these
Calculate the total size of external fragmentation in first fit algorithm.
Consider a partitioned memory of sizes 200 KB, 400 KB, 60 KB, 500 KB and 350 KB and processes of 268 KB, 125 KB, 340 KB, 110 KB and 58 KB arrive in order.
- 609 KB
- 659 KB
- 0 KB
- 60 KB
- None of these
Which of the following cases takes the highest access time?
- Built in register in processor
- Cache
- RAM
- Magnetic disks
- All of these