亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2004 | 回復(fù): 1
打印 上一主題 下一主題

Client/Server Design Alternatives [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2007-07-09 15:49 |只看該作者 |倒序瀏覽
Unix Network Programming Volume 1,Third Edition The Sockets Networking API
Chapter 30. Client/Server Design Alternatives

gave us this figure:

Row Server      Description     Process Control CPU time(Difference from baseline)
0 Iterative Server (baseline) 0.0
1 Concurrent Server, one fork per client request 20.90
2 Pre-fork, each child calling accept 1.80
3 Pre-forking, file locking around accept 2.07
4 Pre-forking, thread mutex locking around accept 1.75
5 Pre-fork, parent passing descriptor to child 2.58
6 One thread per client request 0.99
7 Pre-threaded, mutex locking to protect accept 1.93
8 Pre-threaded, main thread calling accept 2.05

but 30.11 said:
Comparing rows 6 and 7 in Figure 30.1, we see that this latest version of our server is faster than the create-one-thread-per-client version.

so i think it must be something wrong with the data in row 7.

i found in the internet:

Dr. Ayman A. Abdel-Hamid
Computer Science Department
Virginia Tech

think "1.93" is doubtable in his speech.

Also i tested the 8 examples using the same parameters, i made this figure:
Row  Fast  Cost Time
1 8 3.215505
2 3 0.596908
3 6 0.897862
4 1 0.565911
5 7 0.938856
6 5 0.730888
7 2 0.571912
8 4 0.628903

so i think the data in the row 6 may be 1.99.
As the figure in the book showed, "Pre-fork, each child calling accept" is faster than "Pre-threaded, mutex locking to protect accept", but my test result is different.

what is your opinion?

論壇徽章:
0
2 [報告]
發(fā)表于 2007-07-12 11:34 |只看該作者
是我描述的不夠清楚?
還是大家對這個話題不感興趣?
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP