No subject


Sat Nov 12 19:29:10 PST 2005


Causes this thread to begin execution; the Java Virtual Machine calls the
run method of this thread. 
The result is that two threads are running concurrently: the current thread
(which returns from the call to the start method) and the other thread
(which executes its run method).

If you look at the source for Thread, you will see that start is a native
method. 

/Kaj


~~~~~~~~~ ~~~~ ~~~ ~~ ~ ~  ~   ~
kaj.bjurman at hiq.se
+46 70 4200148

> -----Original Message-----
> From: Ashutosh [mailto:sashutosh at opussoft.com]
> Sent: Wednesday, February 09, 2000 5:36 AM
> To: advanced-java at xcf.berkeley.edu
> Subject: Multithreading calls.
> 
> 
> Hello gurus,
>                     While using Multi Threading in Java we 
> give a call to:
> public void run() .
> This method in turn gives a call to start().
> What is the significance of giving a call to run() which in 
> turn gives a
> call to start()?
> Does the call to run() do some ground work at the system 
> level before it
> gives a call to start() ? Why cant we directly give a callto 
> the start()
> method?
> Thanks .
> Ashutosh
> 
> 
> ---
> To unsubscribe, mail advanced-java-unsubscribe at xcf.berkeley.edu
> To get help, mail advanced-java-help at xcf.berkeley.edu
> 

---
To unsubscribe, mail advanced-java-unsubscribe at xcf.berkeley.edu
To get help, mail advanced-java-help at xcf.berkeley.edu



More information about the Advanced-java mailing list