private void startInputMonitor(){		
			while(noStopRequested){	
				try{
					//this.processRegisteAndOps();// 处理通道监听注册和读取事件注册
					
					int num = 0;
					//this.selector.selectedKeys().clear();// 清除所有key
					// Wait for an event one of the registered channels
					num = this.selector.select(50);
					
					//num = this.selector.selectNow();
					if (num > 0){
						// Iterate over the set of keys for which events are available
						Iterator selectedKeys = this.selector.selectedKeys().iterator();
						while (selectedKeys.hasNext()) {
							SelectionKey key = (SelectionKey) selectedKeys.next();
							selectedKeys.remove();
							
							if (!key.isValid()) {
								Client sk = Client.getSockector(key);
								if(sk != null){
									sk.close();
								}
								continue;
							}
		
							if (key.isReadable()){
								Client sockector = Client.getSockector(key);								
								sockector.unregisteRead();// 解除监听器对该连接输入数据的监听
								//key.interestOps(key.interestOps() ^ SelectionKey.OP_READ);
								addToReadPoll(key);// 添加到读取请求队列中
							}
							
							if (key.isWritable()){
								Client.getSockector(key).sendMsgs();
							}
						}
					}
					
					this.processRegisteAndOps();// 处理通道监听注册和读取事件注册
				}catch(Exception e){
					e.printStackTrace();
				}
			}		
		}