To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1079
  Which way is faster?
 
I want to know which way is faster: 1. Use three tasks to watch sensors task watch1() { while (true) { if () { .. } } } task watch2() { while (true) { if () { .. } } } task watch3() { while (true) { if () { .. } } } 2. Use one task with multi (...) (23 years ago, 13-Apr-01, to lugnet.robotics.rcx.nqc)
 
  Re: Which way is faster?
 
By "fastest", I assume you mean the smallest worst case latency between a condition happening and the RCX responding to it. Option #2 has the drawback that while the RCX is responding to one condition, it won't be looking for the other ones. So the (...) (23 years ago, 13-Apr-01, to lugnet.robotics.rcx.nqc)

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