Non-Blocking File IO in Java
问题 I want to write to a named pipe (already created) without blocking on the reader. My reader is another application that may go down. If the reader does go down, I want the writer application to keep writing to that named pipe. Something like a this in Java fopen(fPath, O_NONBLOCK) So that when the reader comes up, it may resume from where it failed. 回答1: First I try to answer your questions. Next I will try to show you a code snippet I created that solves your problem using blocking IO. Your