Redian新闻
>
[转载] multi-timer programming in unix, question?
avatar
[转载] multi-timer programming in unix, question?# Unix - 噫吁兮,危乎高哉
z*h
1
【 以下文字转载自 Security 讨论区 】
【 原文由 zwh 所发表 】
hi, there,
if I have more than one periodic events (send out packet at a fixed
intervals) in a single unix program, how should I code it? it is
said that it is not a good way to have more than one timer at a time.
any hints? thanks.
avatar
c*t
2
Create a multi-thread program is the easiest solution.

【在 z*h 的大作中提到】
: 【 以下文字转载自 Security 讨论区 】
: 【 原文由 zwh 所发表 】
: hi, there,
: if I have more than one periodic events (send out packet at a fixed
: intervals) in a single unix program, how should I code it? it is
: said that it is not a good way to have more than one timer at a time.
: any hints? thanks.

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