The application then registers channels (file descriptors) and interested operations to the selector with a register call on the channel.
然后,应用程序用register调用向选择器注册通道(文件描述符)和感兴趣的操作。
The selector then copies the channels and interested operations into the kernel space and let the kernel do the actual polling for the application.
然后,选择器把通道和感兴趣的操作复制到内核空间,让内核为这个应用程序执行实际的poll。
In keeping with the Reactor pattern, a Selector class is a multiplexor of Channels.
与反应器模式一致,Selector类是Channel的多路复用器。
In keeping with the Reactor pattern, a Selector class is a multiplexor of Channels.
与反应器模式一致,Selector类是Channel的多路复用器。
应用推荐