免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1761 | 回复: 1
打印 上一主题 下一主题

Lamport clock's updated with my solution [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-01-22 00:02 |只看该作者 |倒序浏览
这一个问题是关于Lamport Clocks的问题,我把Time-lines 的架构画出来了,可是题目的要求我不是很理解,希望学过的前辈可以指导一下,欢迎修改图片,谢谢
题目如下:

我把我的思路写出来,如果有错或遗露了什么观念,还希望大家指导


(a)
Consider three processes, P0,P1 and P2, executing on different machines.
Suppose that, in every real-time interval, Δt, P0’s clock is updated 4 time units, P1’s clock is updated 6 time units, and P2’s clock is updated 8 time units, due to clock skew. If the three processes send messages as shown in the following table, show how the local clocks(as seen by each process) are updated using Lamport’s clock algorithm, so that all process’s see the same total ordering of messages. HINT: Draw time-lines showing the local clock values every Δt real-time units for each process, over the interval in which messages are sent and received.




Message
Sending Process

Sending Time

Receiving Process

Message Latency

M0
P0

4
P1
2Δt
M1
P1

24
P2

3Δt
M2
P2
56
P1
2Δt
M3
P1
60
P0
Δt


NOTE: In the table, the “Sending Time” is the time seen by the sending process before Lamport’s clock algorithm has updated any local clocks,
while “Message Latency” is the real-time delay to send a message. State any assumptions you make when applying the “happens before” relationship.


[ 本帖最后由 ckjboy2003 于 2009-1-22 00:19 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-01-24 19:23 |只看该作者
自己顶一下,有没有人愿意加入讨论的呢?非常感谢喔
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP