Quiz - 05
Quiz - 05
Roll No. *
179
https://docs.google.com/forms/d/e/1FAIpQLSfYVt8Qub3SaJ-O7wlhyjDEBOT-EbRHIRHYEkcVbCfT7VP8hA/viewscore?viewscore=AE0zAgBGLFIMert… 1/6
5/17/2021 Quiz - 05
to process a "kill" character that invalidates all characters typed so far on the current
line
Option 6
to allow a raw mode that does not interpret special characters such as erase, kill or
carriage return
All above
https://docs.google.com/forms/d/e/1FAIpQLSfYVt8Qub3SaJ-O7wlhyjDEBOT-EbRHIRHYEkcVbCfT7VP8hA/viewscore?viewscore=AE0zAgBGLFIMert… 2/6
5/17/2021 Quiz - 05
kernel code
A process is swapped out if the kernel needs space in memory. It needs 1/1
space in memory under following situations: *
The fork system call must allocate space for a child process.
The kernel wants to free space in memory for processes it had previously swapped
out and should now swap in.
Swapper process
Kernel process
Boot Process
https://docs.google.com/forms/d/e/1FAIpQLSfYVt8Qub3SaJ-O7wlhyjDEBOT-EbRHIRHYEkcVbCfT7VP8hA/viewscore?viewscore=AE0zAgBGLFIMert… 3/6
5/17/2021 Quiz - 05
The working set of a process is the set of pages that the process has 1/1
referenced in its last n memory references; the number n is called the
window of the working set. If the working set stays in the memory,
swapping could be reduced. When a process addresses a page that is
not in its working set, it incurs a page fault; in handling the fault, the
kernel updates the working set, reading in pages from a secondary
device if necessary. This phenomenon is called as __________________ *
Swapping
Demand paging
Memory allocation
Page translation
The kernel contains 4 major data structures to support low-level memory 1/1
management functions and demand paging. These data structures are
____________ *
swap-use table
Inode table
File table
Process table
https://docs.google.com/forms/d/e/1FAIpQLSfYVt8Qub3SaJ-O7wlhyjDEBOT-EbRHIRHYEkcVbCfT7VP8hA/viewscore?viewscore=AE0zAgBGLFIMert… 4/6
5/17/2021 Quiz - 05
The ____________, used in the fork system call, indicates that the kernel 1/1
must create a new copy of the page when a process modifies its
contents *
Valid bit
Reference bit
Copy on write
modify bit
age
When a process writes data to a stream, the kernel sends the data down 1/1
the output queues; when a device driver receives input data, it sends the
data up the input queues to a reading process. True or False ? *
True
False
Shared memory allows processes to share parts of their virtual address space.
https://docs.google.com/forms/d/e/1FAIpQLSfYVt8Qub3SaJ-O7wlhyjDEBOT-EbRHIRHYEkcVbCfT7VP8hA/viewscore?viewscore=AE0zAgBGLFIMert… 5/6
5/17/2021 Quiz - 05
Forms
https://docs.google.com/forms/d/e/1FAIpQLSfYVt8Qub3SaJ-O7wlhyjDEBOT-EbRHIRHYEkcVbCfT7VP8hA/viewscore?viewscore=AE0zAgBGLFIMert… 6/6