What is the primary effect of invoking a file-close system call on an open…

What is the primary effect of invoking a file-close system call on an open file descriptor or handle?

  1. A.

    It renames the file on disk to signal that it's no longer in use.

  2. B.

    It flushes any buffered output, releases kernel resources, and invalidates the descriptor for further I/O.

  3. C.

    It immediately frees the memory occupied by the file's data in user space.

  4. D.

    It deletes the file from the file system once all operations are done.

Attempted by 122 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…