The Design of Unix Operating System (2) kernel

Unix系统由文件系统和进程组成,文件被表示为索引节点(inode),包含文件布局、权限、所有者和访问时间。每个文件可能有多个链接,系统维护核心inode表、全局文件表和用户文件描述符表,以支持进程间的文件共享。进程通过打开或创建文件在这些表中添加条目,返回的打开/创建调用代码是用户文件描述符表的索引。内核不为中断启动或调度特殊进程,而是保存当前进程上下文并处理中断。
摘要由CSDN通过智能技术生成

 

  • 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值