io模式       

io模式

while(true){ 
    socket = accept(); 
    handle(socket) 
} 

while(true){ 
    socket = accept(); 
    new thread(socket); 
}