what is the meaning of broken pipe exception and when it will come?
Pipe is basically a communication channel between two processes. So one process writes to the pipe while the other reads from it. A broken pipe exception typically means that one process is attempting to read or writ data from a pipe, where as the process on the other end of the pipe has died/been killed.