Ask Question
8 January, 19:27

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?

+5
Answers (1)
  1. 8 January, 21:32
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers