- Unix system consists two parts: the File System which has “space”, the Process has “File”.
- A program written in assembly may invoke system calls directly; while other programs like c/c++ programs call into the system via libraries. The libraries are linked with the pragroms at compile time and thus part of the programs.
- In the internal of Unix system, each file is represented as a “inode”(Index Node) which contains the layout of the file, access permission, owner, access times. A file may have many names, each of which is called “link” and mapped to the file node. The system has a in-core inode table, and when the system is manipulating a file it will load its inode into the in-core inode table.
- The system has two other kinds of tables: a file table which is global and user file descriptor tables. Each process has its own user file descriptor table. When a process is creating or openning a file, it will add an entr