Answer:
When a file operation is requested, the file is specified via an index into this table, so no searching is required.
When the file is no longer being actively used, it is closed by the process, and the operating system removes its entry from the open-file table. Typically, the operating system uses two levels of internal tables: a per-process table and a system-wide table. The per-process table tracks all files that a process has open. Stored in this table is information regarding the process’s use of the file.
When a file operation is requested, the file is specified via an index into this table, so no searching is required.
When the file is no longer being actively used, it is closed by the process, and the operating system removes its entry from the open-file table. Typically, the operating system uses two levels of internal tables: a per-process table and a system-wide table. The per-process table tracks all files that a process has open. Stored in this table is information regarding the process’s use of the file.
You may be interested in:
OS File System MCQs