Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > missing thread state?

Reply
Thread Tools

missing thread state?

 
 
Mark Volkmann
Guest
Posts: n/a
 
      01-09-2006
I've been looking at the ri documentation for Thread.status. It's
seems like there's a thread status that isn't accounted for. What is
the status of a thread that is ready to run, but is waiting for the
scheduler to select it? Neither "run" or "sleep" seems appropriate.

--
R. Mark Volkmann
Partner, Object Computing, Inc.


 
Reply With Quote
 
 
 
 
Mark Volkmann
Guest
Posts: n/a
 
      01-10-2006
On 1/9/06, Mark Volkmann <> wrote:
> I've been looking at the ri documentation for Thread.status. It's
> seems like there's a thread status that isn't accounted for. What is
> the status of a thread that is ready to run, but is waiting for the
> scheduler to select it? Neither "run" or "sleep" seems appropriate.


It turns out the thread status of "run" means that the thread is
*eligible* to be run, not that it is currently running. There is no
state that indicates that a given thread is currently running. I guess
that's because when a piece of code wants to check this, its thread is
the one that is running. Of course this won't work if and when we get
native threads where it's actually possible for two threads to be
running concurrently on different processors.

--
R. Mark Volkmann
Partner, Object Computing, Inc.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports - Visual Basic UFL that implements this function is missing (or U2lcom.dll is missing) Les Caudle ASP .Net 3 09-03-2007 02:27 AM
Re: missing feature classes and missing fields Gary Herron Python 2 07-04-2006 10:29 PM
Terminating a thread from the main thread Charles A. Lackman ASP .Net 3 12-09-2004 02:12 PM
"Thread was being aborted" error from WebApp using Thread.Sleep. Stephen Miller ASP .Net 3 07-01-2004 11:50 PM
perl 5.8.2/3 - thread started by a thread pawo Perl 0 02-16-2004 01:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57