Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27766
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: a question about using ProcessBuilder to call external command |
| Date | 2014-03-16 01:03 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <tlmai9tfv6t4hhmopadmm8e6udqdcjgkmk@4ax.com> (permalink) |
| References | <8f4aa46a-16f4-4b36-a951-7e8eda1692db@googlegroups.com> |
On Wed, 12 Mar 2014 13:06:42 -0700 (PDT), zyng <xsli2@yahoo.com> wrote, quoted or indirectly quoted someone who said : >So if I don't drain the output of the child process, and too much output and buffer saturated, the parent process will hang?! Will the child process hang too? Or both processes hang? Since they are two threads, so one thread cause another thread hang? A thread is a execution stream running in the same address space. exec/ProcessBuilder spawn a whole new address space, and usually do not use the Java run time. If it were java,you would just call the main method. for tips see http://mindprod.com/jgloss/exec.html -- Roedy Green Canadian Mind Products http://mindprod.com "Incorrect documentation is often worse than no documentation." ~ Bertrand Meyer (born: 1950 age: 63), creator of design by contract and the Eiffel language.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
a question about using ProcessBuilder to call external command zyng <xsli2@yahoo.com> - 2014-03-12 13:06 -0700
Re: a question about using ProcessBuilder to call external command zyng <xsli2@yahoo.com> - 2014-03-12 13:10 -0700
Re: a question about using ProcessBuilder to call external command Roedy Green <see_website@mindprod.com.invalid> - 2014-03-17 03:02 -0700
Re: a question about using ProcessBuilder to call external command Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-03-12 16:36 -0400
Re: a question about using ProcessBuilder to call external command Roedy Green <see_website@mindprod.com.invalid> - 2014-03-16 01:03 -0700
csiph-web