这真是个漂亮的死循环啊,
while(true){} 还没有跳出的地方,另外,既然是 PipedInputStream ,你确实是调了 xxx | java ThreadDoctors 的吧

解决方案 »

  1.   

    sorry, 上面我搞错了,原因就是 while 循环没有地方退出,String question;
    while(null != (question = rd.readLine())){
        reply(pw,question);
    }试试看
      

  2.   

    缺少跳出条件while((String question = rd.readLine())!=null)
    {  
        reply(pw,question);
    }
      

  3.   

    哥哥 还是不行~
    我在run()里 加了一条System.out.println("This");语句测试
    public void run()
    {
       System.out.println("This");
       try
                   {
    talks(sin,sout);
          }
       catch(IOException e){};
    }
    发现输出两个This ,可是接下来就停了!