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?

Respuesta :

W0lf93

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.