Ask Question
23 October, 03:12

Unix-like operating system use two internal tables to keep track of open files - the per-process file descriptor table and the system-wide file table. suppose on a unix-like operating system, process a has two files open and process b has three files open. two files are shared between the two processes. how many entries are in the per-process table of process a, the per-process table of process b, and the system-wide tables respectively?

+2
Answers (1)
  1. 23 October, 03:17
    0
    1. 2 entries in per-process table for process a

    2. 3 entries in per-process table for process b

    3. 3 entries in system-wide table

    Since process a has 2 files open, it uses 2 file descriptor entries.

    Since process b has 3 files open, it uses 3 file descriptor entries.

    Since there are only 3 unique files open (2 for process a + 3 for process b - 2

    shared in common), the system-wide table only uses 3 file entries.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Unix-like operating system use two internal tables to keep track of open files - the per-process file descriptor table and the system-wide ...” in 📗 Business if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers