看板PttCurrent
标 题Re: [建议] 引进以前dial-up BBS的功能
发信站HKDAY (Mon Jun 6 21:15:32 2005)
转信站ptt!Group.NCTU!grouppost!Group.NCTU!hkday
※ 引述《[email protected] (小光光)》之铭言:
: single thread telnet bbs 要做动画, 大概只有靠 select() 或 alarm() 之类做
: nonblocking i/o. 每隔一小段时间 input timeout 就再送出一些 output.
: 以 ptt 这种规模的 bbs 不太可能这麽做 -- 那会带来大量的 context switch,
: 徒然浪费 cpu 及频宽.
问一下, 现在 pmore 利用 select() 来等 timeout,
对系统负荷实际带来多少影响, 可否跟大家分享一下 ?
(估计目前并未大幅度触发应用, 但若有一点儿比较或统计,
相信有助於 bbs 管理员衡量是否引入此功能. )
--
※ 发信站: 香港地(hkday.net)
◆ From: 137.189.171.180