 | | 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 (...) (24 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 (...) (24 years ago, 13-Apr-01, to lugnet.robotics.rcx.nqc)
| |