src
代码说明:
分布式系统停车场问题:某停车场共有TOTAL-NUM个车位, ENTRY-NUM个入口, EXIT-NUM个出口. 现需要一个用于停车场控制汽车进出的分布式系统, 在该系统中没有集中的管理者(central server), 每个进(出)口通过通信平等协商保存当前车库的状态信息(如空闲车位数UNOCCUPIED-NUM等), 并据此决定是否允许车辆进入, 为简便计, 假定通信是可靠的.(Parking issues distributed systems: A total of TOTAL-NUM parking spaces, ENTRY-NUM entrance, EXIT-NUM export. Is the need for a used car out of the car park of the distributed control system, the system does not focus on manager (central server), for each import (export) through consultations on an equal footing Communication garage to preserve the current status information (such as the number of free parking spaces UNOCCUPIED-NUM, etc.), and, accordingly, whether or not to allow vehicles to enter, for the simple, the assumed that the communication is reliable.)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!