Memory management Interview questions


Total available count: 45
Subject - Operating System
Subsubject - Memory management

Difference between the fork() and vfork() system call?

During the fork() system call the Kernel makes a copy of the parent process’s address space and attaches it to the child process. But the vfork() system call do not makes any copy of the parent’s address space, so it is faster than the fork() system call. The child process as a result of the vfork() system call executes exec() system call. The child process from vfork() system call executes in the parent’s address space (this can overwrite the parent’s data and stack ) which suspends the parent process until the child process exits.




Next 5 interview question(s)

1
How the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?
2
What are the bits that support the demand paging?
3
What are data structures that are used for Demand Paging?
4
What is called a page fault?
5
What is the window of the working set of a process?