我试图在多个线程中逐行读取套接字的输入.如何中断readLine()以便我可以优雅地阻止它阻塞的线程?
readLine()
编辑(赏金):这可以在不关闭套接字的情况下完成吗?
java multithreading
java ×1
multithreading ×1