📄 00000038.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人: nudtbegger (军人), 信区: Linux <BR>标 题: Re: 再论"对linux的质量质疑" <BR>发信站: BBS 水木清华站 (Sat Jul 31 09:05:14 1999) WWW-POST <BR> <BR>【 在 fzhang (老铁) 的大作中提到: 】
<BR>∶<I> Yes, it is true in Linux2.2, but will not in 2.4(we can expect it this </I><BR>∶<I> fall):
</I><BR>∶<I> The Linux model of network sockets is one common across most UNIX variants </I><BR>∶<I>
</I><BR>∶<I> which adhere to the standards. This is not to say that the standard doesn't </I><BR>∶<I>
</I><BR>∶<I> have some deficiencies. Under Linux 2.2, if you have a number of processes </I><BR>∶<I>
</I><BR>∶<I> all waiting on an event from a network socket (a web port, for instance)
</I><BR>∶<I> they will all be woken up when activity is detected. So, for every web page </I><BR>∶<I>
</I><BR>∶<I> request, a number of web server processes will suddenly wake up and try and </I><BR>∶<I>
</I><BR>∶<I> get at the request... only one will succeed. The losers of the herd will </I><BR>∶<I> put
</I><BR>∶<I> themselves back to sleep and wait for the next connection. Linux is a </I><BR>∶<I> terribly
</I><BR>∶<I> efficient system and manages to wake up all these processes, give the </I><BR>∶<I> resource
</I><BR>∶<I> to one of them, and put the remainder back to sleep very quickly, however
</I><BR>∶<I> benchmarks have shown that we could be more efficient if we eliminated the </I><BR>∶<I>
</I><BR>∶<I> "stampede effect." Thus, the Linux minds cast about for a solution and </I><BR>∶<I> decided
</I><BR>∶<I> to implement "wake one" under Linux. This change allows programs to let </I><BR>∶<I> Linux
</I><BR>∶<I> know that they should be the only one to be woken up in the case of </I><BR>∶<I> activity.
</I><BR>∶<I> It is expected that by the time Linux 2.4 ships, Apache and other similar </I><BR>∶<I> se
</I><BR>∶<I> rvers will begin using this new functionality to increase the efficiency of </I><BR>∶<I>
</I><BR>∶<I> what they do.
</I><BR>老兄,你这段英文为什么不翻成汉语呢?看的我好费劲。
<BR>2.4里都加了些啥呢?what 's new function?
<BR>
<BR>
<BR>∶<I> 中断吗?那是异步驱动的,Linux不也可以吗?
</I><BR>∶<I> 但操作系统可以使得用户程序具有阻塞语义的
</I><BR>what's mean?
<BR>
<BR>∶<I> ?: 真有要求的话,Linus推出的会更快的
</I><BR>∶<I> 这倒是,操作系统变化挺快的,但NT太笨重了,跟不上吧,NT2000怕要难产
</I><BR> <BR> <BR>-- <BR>※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 202.197.0.1] <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -