...
/Shared File Table Entries: fork() and dup()
Shared File Table Entries: fork() and dup()
This lesson discusses a few ways when an instance of an opened file can be shared between multiple programs.
In many cases (as in the examples shown in the previous lesson), the mapping of file descriptor to an entry in the open file table is a one-to-one mapping. For example, when a process runs, it might decide to open a file, read it, and then close it; in this example, the file will have a unique entry in the open file table. Even if some other process reads the same file at the same time, each will have its own entry in the open file table. In this ...
Access this course and 1400+ top-rated courses and projects.