找回密码
 用户注册

QQ登录

只需一步,快速开始

查看: 3273|回复: 1

select 和wfmo

[复制链接]
发表于 2009-7-14 16:23:05 | 显示全部楼层 |阅读模式
如题,我一直不明白select和wfmo之间的区别,查资料得出select是LT触发,wfmo是ET触发,还是不很明白,请高手指教。
发表于 2009-7-14 17:36:12 | 显示全部楼层
对于ET与LT的理解,参考下面的文档,直接搜索ET,LT就成。
http://www.acejoy.com/bbs/viewthread.php?tid=1225&extra=page%3D1

楼主想了解的触发方式的差异参考这里
WaitForMultipleObjects() returns an index to the first handle array slot with a signaled handle. It does not, however, indicate the number of handles that are signaled, and there is no simple way to scan the handles and check which are. WaitForMultipleObjects() must therefore be invoked numerous times to find all signaled handles. In contrast, select() returns a set of active I/O handles and a count of how many are active.

WaitForMultipleObjects() doesn't guarantee a fair distribution of notifications, that is, the lowest active handle in the array is always returned, regardless of how long other handles further back in the array may have had pending events.
看书一定要仔细哦~

[ 本帖最后由 modern 于 2009-7-14 20:01 编辑 ]
您需要登录后才可以回帖 登录 | 用户注册

本版积分规则

Archiver|手机版|小黑屋|ACE Developer ( 京ICP备06055248号 )

GMT+8, 2024-5-18 20:57 , Processed in 0.028619 second(s), 6 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表