Chapter s Operating System 5.1.1 Resource allocation and related functions An os can use a resource table as the central data structure allocation. The table contains an entry for each resource unit in the system. The entry contains the name or address of the resource unit and its present status, i.e. whether it is free or allocated to some program. When a program raises a request for a resource. the resource would be allocated to it if it is presently free. If many resource units of a resource class exist in the system, a resource request only indicates the resource class and the os checks if any resource unit of that class is available for allocation 操作系统可以利用资源表作为资源分配的中心数据结构。表中包含系统的每一资源 单位项数据项中记录资源单位的名称或地址以及当前状态,即它是空闲的还是己经 分配给某一程序。当程序对某一资源提出请求后,若该资源是空闲的,则它将被分 配给那个程序。若系统中同一资源类中存在许多资源单位,程序的资源请求只指明 要求哪类资源而由操作系统检查该类中是否有可用的资源单位可以分配。 《第机语 5-12Chapter 5 Operating System 计算机专业英语 5-12 An OS can use a resource table as the central data structure allocation. The table contains an entry for each resource unit in the system. The entry contains the name or address of the resource unit and its present status, i.e. whether it is free or allocated to some program. When a program raises a request for a resource, the resource would be allocated to it if it is presently free. If many resource units of a resource class exist in the system, a resource request only indicates the resource class and the OS checks if any resource unit of that class is available for allocation. 操作系统可以利用资源表作为资源分配的中心数据结构。表中包含系统的每一资源 单位项数据项中记录资源单位的名称或地址以及当前状态,即它是空闲的还是己经 分配给某一程序。当程序对某一资源提出请求后,若该资源是空闲的,则它将被分 配给那个程序。若系统中同一资源类中存在许多资源单位,程序的资源请求只指明 要求哪类资源而由操作系统检查该类中是否有可用的资源单位可以分配。 5.1.1 Resource allocation and related functions