To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2784
2783  |  2785
Subject: 
How to check if a thread is still alive?
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 20 Aug 2002 16:44:27 GMT
Viewed: 
2331 times
  
Hi,

this is my first post to this group, so please excude if this is a
trivial question...

I just got started with Mindstorms and am playing around with the
various programming options available trying to find the one that fits
me best. I started of with leJOS which is nice but as I am not a Java
programmer I kept looking around and getting to like brickOS better and
better.

What I inspecially liked about leJOS are some of the predifined classes
dealing with behavior control (as documented in Brian Bagnell's ook
'core Lego Mindstorms Programming'). So I started to implement siniliar
finctionality for brickOS. For the arbitrator it would be extremly
helpfull (not to say essential) to know is a thread is still active or
has exited already. Browsing through the docs and the header files I
didn't seem to find a way to do this. What I need is an equivalent to

    test -f /proc/$PID

to check if a process is running under Lunix. Only for threads and in
brickOS.

Any idea?

Thanks,
BB

PS: Once I have the arbitrator working I can post it here if there is
interest.
--
In Blythe, California, a city ordinance declares that a person must own
at least two cows before he can wear cowboy boots in public.



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR