I am trying to read input from a socket line by line in multiple threads. How can I interrupt readLine() so that I can gracefully stop the thread that it\'s bl
readLine()
you can design a Timer class around the read() block.
you need to set a timeout for your timer.
on timeout just interrupt your thread.