- 1
- 0
- 约5.56千字
- 约 11页
- 2017-08-07 发布于重庆
- 举报
OS课程设计算法.ppt
仿真多进程并发环境下死锁预防,避免,检测与解除整体架构 整体思路 数据结构 进程类 Struction_pro 属性:ID,P1,P2,P3,State 类 Struction 属性:P1,P2,P3 Struction Resource = new Struction(10,5,7); //分配3类资源的总数 Struction Available = new Struction(10,5,7); //分配3类资源的可用数量,初始值于最大值相同7 Struction_pro [] Claim =new Struction_pro[5]; //存放进程资源最大值 Struction_pro[] Allocation = new Struction_pro[5]; //存放进程已分配值 Resource Available Claim[5] Allocation[5] P1 P2 P3 ID State P1 P2 P3 P1 P2 P3 P1 P2 P3 ID State ID State P1 P2 P3 P1 P2 P3 ID State 初始化值 Struction Resource = new Struction(10,5,7) Struction Available = new Struction(10,5,7); S
原创力文档

文档评论(0)