主权项 |
1. A method for handling events, the method comprising:
creating, by a computer system, a plurality of I/O handles for receiving events; partitioning, by the computer system, the plurality of I/O handles into one or more subsets, wherein events received via I/O handles in the same subset are correlated and events received via I/O handles in different subsets are uncorrelated; and delegating, by the computer system, each I/O handle in the plurality of I/O handles to a poll thread in a plurality of poll threads, wherein I/O handles in the same subset are delegated to the same poll thread. |