|
发表于 2009-9-21 16:08:49
|
显示全部楼层
这个问题是一个老问题,取决于选用的Reactor的具体实现与系统平台。
C++NPV2 4.4
Limited number of handles. Unlike ACE_Select_Reactor and ACE_TP_Reactor, which can be configured to demultiplex hundreds or thousands of handles, ACE_WFMO_Reactor can process no more than 62 handles. This limitation stems from the fact that Windows only allows WaitForMultipleObjects() to wait for 64 handles per thread. ACE_WFMO_Reactor uses two of these handles internally: one for its notification mechanism and another for synchronizing concurrent handler updates. If more than 64 handles must be demultiplexed, you can use multiple ACE_WFMO_Reactor objects in multiple threads, use the ACE_Proactor (Chapter 8), or use the ACE_Select_Reactor and increase its size via the mechanisms described in Sidebar 20 (page 92). |
|