Article View: borland.public.jbuilder.java.language
Article #19056Re: thread and variables nb. threads are special
From: James Rudnicki
Date: Wed, 18 Mar 1998 00:00
Date: Wed, 18 Mar 1998 00:00
27 lines
1491 bytes
1491 bytes
Greg Dickson wrote in message <6enifo$ru06@forums.borland.com>... >James I thought youd be interested in this one >its a quote from Bruce Eckels Thinking in Java > >"An ordinary object would be fair game for garbage collection, but not >a Thread. Each Thread �registers� itself so there is actually a >reference to it someplace and the garbage collector can�t clean it >up." > >So basicallit looks like you can just call it and forget it >Pretty cool hey That is interesting. The system does need something to keep track of the thread, and it is probably the reference to the instance. That keeps the usage count up. Still, doesn't creating instances and tossing the handle give you the willys? Your mom teaches you to clean up your room. Ya spend your life learning to "delete" after yourself. Then you get a maid. I'd be the type who cleans up before the maid! later, Jim
Technical Details
Message-ID:
<6eo2mi$shh2@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6ej7rq$nmb1@forums.borland.com> <6elcmn$pqb6@forums.borland.com> <6enifo$ru06@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,ddaf1f759f6f1855 X-Google-Attributes: gidf74b3,public From: "James Rudnicki" <rudnicki@best.com> Subject: Re: thread and variables nb. threads are special Date: 1998/03/18 Message-ID: <6eo2mi$shh2@forums.borland.com> X-Deja-AN: 335188813 References: <6ej7rq$nmb1@forums.borland.com> <6elcmn$pqb6@forums.borland.com> <6enifo$ru06@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language