xiaoa

所属分类:系统编程
开发工具:Visual C++
文件大小:433KB
下载次数:10
上传日期:2008-06-25 19:48:32
上 传 者zhang19168
说明:  通过程序实现定义的进程,为各进程分配资源,具体过程是:首先在程序中定义了3类资源,数量分别为10,5,7。然后定义进程p0,p1,p2,p3,p4,接着为各进程申请各资源,然后在程序执行并比较申请的资源数量与各资源所剩数量,若前者大于后者则申请失败,反之则成功。同时该程序可以撤消新建进程,也可以查看资源分配情况。
(The adoption of procedures to achieve the definition of the process, the process for the allocation of resources, the specific process is: First of all, in the procedure defined 3 categories of resources, the number of 10,5,7 respectively. And then define the process of p0, p1, p2, p3, p4, then for the process to apply the resources, then the application procedure and compare the amount of resources with the remaining quantity of resources, if the former than the latter to apply for the failure, and vice versa success. At the same time, the program can withdraw the new process can also view the distribution of resources.)

文件列表:
银行家\0.cpp (4496, 2008-06-25)
银行家\0.dsp (3341, 2008-06-25)
银行家\0.dsw (527, 2008-06-25)
银行家\0.ncb (41984, 2008-06-25)
银行家\0.opt (48640, 2008-06-25)
银行家\0.plg (721, 2008-06-25)
银行家\银行家.dsp (4279, 2008-06-24)
银行家\银行家.dsw (537, 2008-06-24)
银行家\银行家.ncb (33792, 2008-06-24)
银行家\银行家.opt (48640, 2008-06-24)
银行家\银行家.plg (883, 2008-06-24)
银行家\Debug (0, 2008-06-25)
银行家 (0, 2008-06-25)

近期下载者

相关文件


收藏者