title: Better alternative for PipedReader/PipedWriter?
body: <p>I need to have a buffered <code>char</code> stream, into which I write in one thread and from which I read in another thread. <a href="http://github.com/orfjackal/idea-sbt-plugin/blob/e8893e18e8ab4f7bdc2dc0aea9ea9045b2184171/sbt-plugin/src/main/java/net/orfjackal/sbt/runner/MulticastPipe.java" rel="noreferrer">Right now</a> I'm using <a href="http://java.sun.com/javase/6/docs/api/java/io/PipedReader.html" rel="noreferrer">PipedReader</a> and <a href="http://java.sun.com/javase/6/docs/api/java/io/PipedWriter.html" rel="noreferrer">PipedWriter</a> for it, but those classes cause a performance problem: PipedReader does a <code>wait(1000)</code> when its internal buffer is empty, which causes my application to lag visibly.</p>
  
  <p>Would there be some library which does the same thing as PipedReader/PipedWriter, but with better performance? Or will I have to implement my own wheels?</p>