File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
when does a new call stack is created in Threads?
Joined: Aug 19, 2006
Nov 24, 2006 04:42:00
When does a new thread of execution starts(with a new call stack)?
a) when the start() method is invoked //refer pg 681 k&b
b) when the run() method is invoked // refer pg 676 k&b
"Success is a journey, not a destination." Ben Sweetland
Joined: Feb 08, 2006
Nov 24, 2006 04:45:00
when a thread's start method is is called the thread is moved from Alive to runnable state, with a new stack allocated to it.
SCJP 5.0 77%
Joined: Nov 01, 2006
Nov 24, 2006 04:46:00
when the start() method is invoked
~Sanjeev Singh<br />SCJP 1.5
I agree. Here's the link:
subject: when does a new call stack is created in Threads?
q on threads
doubt in K&B book
A simple looking System.out.println problem
Doubt in GC.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015