z*h 发帖数: 22 | 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. | c*****t 发帖数: 1879 | 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.
|
|