Redian新闻
>
[转载] 写程序 通讯 的 API (IPC )
avatar
[转载] 写程序 通讯 的 API (IPC )# Unix - 噫吁兮,危乎高哉
c*n
1
【 以下文字转载自 THU 讨论区 】
【 原文由 creation 所发表 】
要交project,
本来觉得很简单的问题,想着半天就应该做出来,
可逐渐发现现有的 packages 都不完全合适
a distributed algorithm protocol implementation
3 phase commit,
I need to show the effect of message delay ,so
I need to introduce artificial delay to real API xxx_send
I do this by spawning a POSIX thread, and then
do usleep() and XXX_send in that thread,
I use PVM for different processes, this is an overkill
but very easy to use because PVM has timed recv, ( I need timeout
in the protocol, and i
avatar
h*i
2
why not use select?

【在 c******n 的大作中提到】
: 【 以下文字转载自 THU 讨论区 】
: 【 原文由 creation 所发表 】
: 要交project,
: 本来觉得很简单的问题,想着半天就应该做出来,
: 可逐渐发现现有的 packages 都不完全合适
: a distributed algorithm protocol implementation
: 3 phase commit,
: I need to show the effect of message delay ,so
: I need to introduce artificial delay to real API xxx_send
: I do this by spawning a POSIX thread, and then

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。