Attributes associated with a file can be maintained in several places: a. Within the set of open file descriptors b. Wit

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Attributes associated with a file can be maintained in several places: a. Within the set of open file descriptors b. Wit

Post by answerhappygod »

Attributes associated with a file can be maintained in several
places:
a. Within the set of open file descriptors
b. Within the system-wide file table entry for the file
c. Within the ‘i-node’ (or ‘v-node’)
These attributes can be associated with the actual file (e.g.
the file size), or can be associated with an open instance of the
file (e.g. whether the file is opened for reading or writing,
whether the file is opened for non-blocking I/O, etc.). What would
be preferred location of the following attributes of a file and
why? Discuss any tradeoffs if that attribute could be in more than
one of the above.
a. The size of the file.
b. The “read/write” pointer of the open file.
c. Whether the file is opened for reading, writing, or both.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply