Article View: borland.public.jbuilder.java.language
Article #19110thread and variables
From: Greg Dickson
Date: Mon, 16 Mar 1998 00:00
Date: Mon, 16 Mar 1998 00:00
24 lines
1033 bytes
1033 bytes
Hi all
I am playing withthreads and I was wondering if anyone knows what
happens here
if I start a thread from a method with say
private void doCommand (String doThis) {
RunCommand tc = new RunCommand(doThis);
}
the RunCommand implements runnable and the constructor also starts the
thread
What happens if the method is called several times
is tc given a new handle each time the method is called or is this
going to go nuts .
Thanks
Greg Dickson
Technical Details
Message-ID:
<6ej7rq$nmb1@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,ddaf1f759f6f1855,start X-Google-Attributes: gidf74b3,public From: "Greg Dickson" <witchy@netserv.net.au> Subject: thread and variables Date: 1998/03/16 Message-ID: <6ej7rq$nmb1@forums.borland.com> X-Deja-AN: 334526256 Content-Transfer-Encoding: 7bit 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