• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Runtime.exec - multithread ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Runtime.exec - multithread ?


  • Subject: Re: Runtime.exec - multithread ?
  • From: Ben Ketteridge <email@hidden>
  • Date: Tue, 9 Nov 2004 08:23:54 +0000

On Tue, 9 Nov 2004 09:08:54 +0100, Erwin <email@hidden> wrote:
> In one of my components I launch (successfully..) a C-Program using
> Runtime.exec command-line to convert an Image
> ..........
>          try{
>                 Process runningApp = Runtime.getRuntime().exec(command);
>                 //
>                 BufferedReader dtinstrm = new BufferedReader(new
> InputStreamReader(runningApp.getInputStream()) );
>                 BufferedReader dterrstrm = new BufferedReader(new
> InputStreamReader(runningApp.getErrorStream()) );
>                 runningApp.waitFor();

Create a new thread to run this code. Alternatively, look at the Java
API documentation for Process and see if there's a way to run without
the waitFor() directive.

Ben


--
|  Ben Ketteridge email@hidden, aka Gremlin   |
|  It is by caffeine alone that I set my mind in motion.  |
|  It is by the coffee that the thoughts acquire speed,   |
|  the lips acquire stains, the stains become a warning.  |
|  It is by caffeine alone that I set my mind in motion.  |
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Runtime.exec - multithread ? (From: Erwin <email@hidden>)

  • Prev by Date: Runtime.exec - multithread ?
  • Next by Date: [HALF SOLVED..] Runtime.exec - multithread ?
  • Previous by thread: Runtime.exec - multithread ?
  • Next by thread: [HALF SOLVED..] Runtime.exec - multithread ?
  • Index(es):
    • Date
    • Thread