To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 9229
9228  |  9230
Subject: 
Re: Tasks in RCX
Newsgroups: 
lugnet.robotics
Date: 
Wed, 22 Dec 1999 02:24:24 GMT
Viewed: 
834 times
  
Not sure about the newer VM's, but the early Java systems got bogged down pretty
quickly when you started to fire up lots of concurrent threads, particularly if
you were doing 'real-time' type tasks such as animation or network access.  This
sort of thing can slow down the CPU scheduler with too many context switches.
If I remember correctly, this is an even bigger problem in embedded real-time
controllers.  I would assume this would apply to the RCX (more-or-less), hence
the desire to limit the number of tasks to ten.

- Greg

Tilman Sporkert wrote:

In lugnet.robotics, Ram Meenakshisundaram writes:
Hi,

I read somewhere that the RCX is limited to only 10 concurrent tasks.
Is this limitation in the firmware?  If so, can I use a replacement
firmware like legOS to overcome this.  I basically want to have an
unlimited number of tasks so that I can port OCCAM-2 to the RCX.  Thanks

  <chuckle>  10 seems like a small number (yes its limited by the firmware)
until you try to use them all.  In my experience only email and webserver type
applications kick off more than 4 or 5 threads at once.

That highly depends on the programming environment, and the skills and
preferences of the programmer. Thread creation and management is very easy in
Java, and therefore, Java programmers tend to use threads more liberally for
example. Dozens of threads are common in applications I'm working with.

The RCX environment leads you towards liberal use of concurrent tasks, too. You
don't want to stop monitoring your sensors while performing some motor
operations for example. The big red "Emergency shut down" button has to work at
any time. Other real-time operation systems use interrupt handlers to accomplish
the same goals.

The RCX has a limited number of inputs (3 sensors, IR, timer, counter) and
outputs (3 motors, speaker). That limits the number of useful tasks that you can
have. Not many people using the Lego Mindstorms programming environment will be
seriously inconvenienced by a limit of 10 concurrent tasks.

Tilman

--

G. Crisp - gcrisp@mindspring.com

"Indian, indian, what did you die for?  Indian says 'Nothing at all.'"
-- Jim Morrison



Message is in Reply To:
  RE: Tasks in RCX
 
(...) That highly depends on the programming environment, and the skills and preferences of the programmer. Thread creation and management is very easy in Java, and therefore, Java programmers tend to use threads more liberally for example. Dozens (...) (25 years ago, 21-Dec-99, to lugnet.robotics)

7 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
2 hours ago
Custom Search

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