[3071] in java-interest

home help back first fref pref prev next nref lref last post

Java Questions

daemon@ATHENA.MIT.EDU (Venkat_Krishnamoorthy@fp.cibc.com)
Sun Oct 29 14:21:37 1995

From: Venkat_Krishnamoorthy@fp.cibc.com
Date: Sun, 29 Oct 95 12:42:00 -0500
To: java-interest-digest@java.sun.com, Venkat_Krishnamoorthy@fp.cibc.com

     
     
     Hi there,
     
        I have run in to some specific problems, while writing a standalone 
     java application.
     
        platform: prebeta1a , solaris.
     
     a). A part of my app gives user ability to submit jobs, so i spawn
     
        a thread and do a runtime.exec("job"), Following is the code 
        
        fragment.
     
        class BatchThread extends Thread{
     
                public synchronized void run(){
                
                        Process proc=Runtime.getRuntime.exec("job);
                        proc.waitFor();
                }
        }
     
        Problem:
        -------
                The first time i invoke this thread, things run fine, the
        
        second time the thread waits for ever. If i do a ps, i see my child
        
        as a zombie, Is this a bug or am i doing anything wrong.
     
     
     b).        Are there any code fragments to load gif images in a 
     
        "standalone app", Also any examples on using thread groups.
     
     
     If you have any answers to any of the above please email
     
     me directly at
     
     "krishnam@fp.cibc.com"
     
     Thanks,
     -Venkat.

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post