Thread question


#1

I’ve been looking at using the method named [color=#0000FF]isThreadRunning[/color] in the [color=#0000FF]Thread[/color] class. But I wonder what it’s really telling me. Perhaps Jules or someone else might provide a little enlightenment. Does a [color=#0000FF]true[/color] return mean only that the thread has been created? Does it mean that it’s actually getting some CPU cycles? Thanks to anyone who can tell me more.


#2

Well, it just means that the thread’s run() method has been invoked, and hasn’t returned yet.


#3

So it’s been created and passed to the scheduler, but that’s all we know. Thanks for the clarification.