🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2586

Re: Why Java Program eats Memory?!

#2586
From: banxuegang
Date: Tue, 19 Sep 2000 00:00
45 lines
1124 bytes
HI,
Thank you for your help. But it is hard to post my source codes here, it is
too long.
But something like below:

class myThread1  extends Thread
{
......
public void main()
{
    myThread1 t1=new myThread1();
    myThread1 t2=new myThread1();
    t1.start();
    t2.start();
}

public void run()
{
    while(true)
    {
         myThread2 mt2=new myThread2();
        mt2.start();
        ....
    }
}
....
}

class myThread2 extends Thread
{
public void main()
{
...
}
public void run()
{
...
}
....

}


Thank you so much.
Ban
Technical Details
Message-ID: <39c77da2$1_2@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39c28555$1_2@dnews> <39C6DA10.C8A4B4D2@aravox.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,80c63c7225823056
X-Google-Attributes: gid1089d0,public
From: "banxuegang" <ban@cae.wisc.edu>
Subject: Re: Why Java Program eats Memory?!
Date: 2000/09/19
Message-ID: <39c77da2$1_2@dnews>
X-Deja-AN: 671636323
References: <39c28555$1_2@dnews> <39C6DA10.C8A4B4D2@aravox.com>
X-Trace: 19 Sep 2000 07:52:18 -0800, 128.104.179.189
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: borland.public.jbuilder.java.api
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300