登录
首页 » GO » demo1

demo1

于 2020-01-14 发布
0 109
下载积分: 1 下载次数: 1

代码说明:

说明:  实现全局状态的快照算法,并监控下列程序:两个进程P和Q用两个通道连成一个环,它们不断地轮转消息m。在任何一个时刻,系统中仅有一份m的拷贝。每个进程的状态是指由它接收到m的次数。P首先发送m。在某一点,P得到消息且它的状态是101。在发送m之后,P启动快照算法,要求记录由快照算法报告的全局状态。(The snapshot algorithm of global state is implemented, and the following programs are monitored: two processes P and Q are connected into a ring by two channels, and they continuously rotate the message M. At any time, there is only one copy of m in the system. The state of each process is the number of times it receives M. P sends m first. At some point, P gets the message and its status is 101. After M is sent, P starts the snapshot algorithm, and records the global status reported by the snapshot algorithm.)

文件列表:

demo1, 0 , 2020-01-14
demo1\小组实验.docx, 95258 , 2020-01-14
__MACOSX, 0 , 2020-01-14
__MACOSX\demo1, 0 , 2020-01-14
__MACOSX\demo1\._小组实验.docx, 243 , 2020-01-14
demo1\client2.json, 158 , 2019-12-02
__MACOSX\demo1\._client2.json, 176 , 2019-12-02
demo1\client1.json, 158 , 2019-12-02
__MACOSX\demo1\._client1.json, 176 , 2019-12-02
demo1\.vscode, 0 , 2019-12-02
demo1\.vscode\launch.json, 482 , 2019-12-02
__MACOSX\demo1\.vscode, 0 , 2020-01-14
__MACOSX\demo1\.vscode\._launch.json, 176 , 2019-12-02
__MACOSX\demo1\._.vscode, 176 , 2019-12-02
demo1\main.go, 4192 , 2019-12-02
__MACOSX\demo1\._main.go, 176 , 2019-12-02
__MACOSX\._demo1, 176 , 2020-01-14

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696524资源总数
  • 103938会员总数
  • 55今日下载