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 / 1726
    multiple "execi" with different priorities —Thanasis Kostakos
   Hi, I am trying to run three different tasks, with the "execi" command. When all of the have the same priority=10, everything works ok. When I change the priority in one of them priority=11 or 12, then everything seems to go much slower, and (...) (24 years ago, 21-Feb-01, to lugnet.robotics.rcx.legos)
   
        Re: multiple "execi" with different priorities —Bernardo Dal Seno
     (...) That line seems ok to me. Setting priority for a task above 10 (normal priority) may cause starvation to other tasks. This depend on what your function process() does. If it never waits (using calls like wait_event(), sleep(), sem_wait()...) (...) (24 years ago, 21-Feb-01, to lugnet.robotics.rcx.legos)
   
        Re: multiple "execi" with different priorities —Ross Crawford
   (...) of (...) The call looks fine, but as Bernado said, you have to make sure that higher priority tasks relinquish control regularly. IIRC all tasks of a given priority must get a slice before any lower priority tasks get any slice. And remember (...) (24 years ago, 21-Feb-01, to lugnet.robotics.rcx.legos)
   
        Re: multiple "execi" with different priorities —Bernardo Dal Seno
   (...) Actually legOS multitasking is preemptive :-) bye Bernardo (24 years ago, 22-Feb-01, to lugnet.robotics.rcx.legos)
   
        Re: multiple "execi" with different priorities —Ross Crawford
   (...) have (...) Yes, I actually went & checked after I'd posted. Maybe I should've checked before 8?) Anyway, Stig Nielsson emailed me the following, which explains it a lot better, and will probably be useful for Thanasis to work out the original (...) (24 years ago, 23-Feb-01, to lugnet.robotics.rcx.legos)
 

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