Operating System-Unix [3i Infotech Placement]: Sample Questions 76 - 77 of 78

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 76


Describe in Detail


How can a parent and child process communication?


Define Create New Process
  • A parent and child can communicate using normal inter-process communication schemes- in addition they have special ways to communication which take advantages of their parent child relationship.
  • After forking the process, child process inherits all properties of parent, also pipe.
  • The child inherits file descriptors from its parent, if parent opens two ends of a pipe then after fork, parent can chose one end and the child choses the other end of the pipe.
  • This is done using popen () routine to run a child program.
  • Parent can store the file descriptor returned from popen () -child and parent processes can use it as stdin, and stdout.
  • In addition, child process inherits memory segments mapped anonymously by the parent- not accessible from unrelated processes.

Question 77


Write in Short

Short Answer▾

What data structure are used in Demand Paging?


  • Kernel contains 4 data structures for demand paging.
  1. Page table entries
  2. Disk block descriptors
  3. Page frame data table
  4. Swap-use table
4 Data Structures for Demand Paging

Developed by: