I have a
java program which has threads that connects to a TCP server and tries to do a blocking read on the socket.
The server is not sending anything on the sockets
I was seeing all these threads on the profiler and saw all these threads showed as RUNNING
Did a
thread dump to find that these threads are in RUNNABLE state.
On a blocking read on the socket( basically waiting for network I/O) the thread state should be BLOCKED or WAITING right?
Instead when they show up as RUNNABLE, this means that cpu time slices are being wasted on this thread?