Exec actor (was Re: [kepler-dev] 2d display widget?)
Dan Higgins
higgins at nceas.ucsb.edu
Thu Jul 29 15:13:45 PDT 2004
I forgot to send this to everybody !
The 'gobble' threads are really a 'fix' to the limited size of io
buffers on the Windows OS.Without them, subprocesses often hang under
Windows. stdin/stdout are handled much better on Unix machines and such
threads are probably not needed.
And I think that it is the Windows version of exec() that is especially
crude!
Dan
Christopher Brooks wrote:
>The Java exec() is rather crude.
>
>My understanding is that we want to read from Process as we go along
>because there are limits to the size of the buffer. I vaguely
>remember there also being problems if we did not start reading
>from the Process rather promptly.
>
>The Exec actor I hacked up is documented at
>http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII4.0/ptII4.0/doc/codeDoc/ptolemy/actor/lib/Exec.html
>The documentation has a typo in one of the resource URLs, the correct
>URL is
>http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
>another URL is
>http://mindprod.com/jgloss/exec.html
>
>
>-Christopher
>
>--------
>
> On Wed, 28 Jul 2004, Dan Higgins wrote:
>
> > dir which uses an actor called 'InteractiveExec'. This was a rought
>
> Why does the Exec / InteractiveExec actor spawn off threads to 'gobble'
> input from the underlying process's stdout?
>
> Would it be possible to just let the operating system buffer the standard
> i/o streams, and then read all available data from stdout in the fire()
> method?
>
> Tobin
>
> ---------------------------------------------------------------------------
> -
> Posted to the ptolemy-hackers mailing list. Please send administrative
> mail for this list to: ptolemy-hackers-request at ptolemy.eecs.berkeley.edu
>--------
>_______________________________________________
>kepler-dev mailing list
>kepler-dev at ecoinformatics.org
>http://www.ecoinformatics.org/mailman/listinfo/kepler-dev
>
>
--
*******************************************************************
Dan Higgins higgins at nceas.ucsb.edu
http://www.nceas.ucsb.edu/ Ph: 805-892-2531
National Center for Ecological Analysis and Synthesis (NCEAS)
735 State Street - Room 205
Santa Barbara, CA 93195
*******************************************************************
More information about the Kepler-dev
mailing list