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 / 3608
3607  |  3609
Subject: 
Re: The BrickOS Task Manager
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 5 Jan 2004 13:04:52 GMT
Viewed: 
3733 times
  
On Mon, Jan 05, 2004 at 12:54:02AM +0000, Michael Purvis wrote:
...
  while !(rowdone && coldone);

only as a side note:
you shouldn't really do this. you are burning precious cpu-cycles here.
it should look something like

   while(!(rowdone && coldone))
msleep(5);

if you're in a hurry you can make smaller msleep's...

--

Florian Schmidt
schmidt_florian@gmx.de



Message is in Reply To:
  Re: The BrickOS Task Manager
 
(...) Hmm... it doesn't seem to recognize pid_t as a valid type. I have a document of the functions in brickOS that indicates execi returning an int. Which is it? (...) Still confused... I'll post the poignant code: pid_t rowthread; pid_t colthread; (...) (21 years ago, 5-Jan-04, to lugnet.robotics.rcx.legos)

15 Messages 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