Article View: borland.public.jbuilder.java.language
Article #19060Re: thread and variables nb. threads are special
From: Greg Dickson
Date: Wed, 18 Mar 1998 00:00
Date: Wed, 18 Mar 1998 00:00
48 lines
2335 bytes
2335 bytes
Not really in this case as its just a telnet send comand so there aint nothing Im gonna do if it falls over But if I wanted to something else I would hang onto it In this case the user will see the result either way and if it fails for any of a thousand reasons then they will just try again Stuff the maid thats what I pay her for. <g> and My rooms a bit of a mess any way. I 'spose a bit of this comes from NOT have a C background where you dont get help like this, and the maid is just as likely to be knocking off you knives and forks just 'cause you forgot to tell her not to Greg James Rudnicki wrote in message <6eo2mi$shh2@forums.borland.com>... > >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:
<6eoaec$sbg7@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> <6eo2mi$shh2@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: "Greg Dickson" <witchy@netserv.net.au> Subject: Re: thread and variables nb. threads are special Date: 1998/03/18 Message-ID: <6eoaec$sbg7@forums.borland.com> X-Deja-AN: 335211890 Content-Transfer-Encoding: 8bit References: <6ej7rq$nmb1@forums.borland.com> <6elcmn$pqb6@forums.borland.com> <6enifo$ru06@forums.borland.com> <6eo2mi$shh2@forums.borland.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language