2007-12-25 22:19:05
读<
1.OS functions can be classified into:
1.1 Resource allocation and related functions;
Two popular strategies for resource allocation are:
- Partitioning of resources;
Static allocation - 在程序运行之前分配资源
- Allocation from a pool;
Dynamic allocation - The OS maintains a common pool of resources and allocates from this pool on a need basis.
由此可见,OS维护一张存放了系统所有资源的资源表(Resource Table)是很必要的,它是资源分配功能的核心。
有分配(allocation)就有解除分配(de-allocation),书中用到了Resource sharing这样的词,一开始我理解成资源分享:A,B同时占有某个资源。但是后来通过在StarDict上看Share的解释并结合文章,我认为 sharing means allocation/de-allocation(资源的分配和释放),即资源被A用完了以后是怎么北B占有的。
- Sequential sharing;
一个资源如果分配给一个程序的话就被这个程序独占,只有这个资源被解除分配以后才变成free状态并可以被再次分配,比如CPU sharing
- Concurrent sharing;
一个资源被多个程序共享,比如Memory sharing
这有两次词要说一下,一个是preemption,按照本书的说法这个词主要表示preemption of the CPU,如果说其他资源的抢占要用resource preemption这个词。另一个是scheduling,它表示的是CPU scheduling.
1.2 User interface functions;
- A single program;
- A sequence of single programs;
- A collection of programs;
2. OS functions的发展主要体现在:
- Efficient utilization of computing resources;
- New features in computer architecture;
- New user requirements;
No comments:
Post a Comment