This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: kawa shell concept
* Per Bothner [2012-02-07 19:18] writes:
>>> Pipe
>>>
>>> (run in: (run "command1") "command2")
>>
>> How's this implemented in Java? Is there even a JDK API to create real
>> pipes?
>
> The default (and initial) implementation would just use a helper thread.
> It reads from the output stream of command1, and writes to the input
> stream of command2. Do you know of any problems (like risk of deadlock)
> doing it this way?
No; it just sounds inefficient.
Helmut