On Mon, May 18, 2009 at 12:56 PM, Vitaliy wrote: > Typically one starts with a simple loop. For instance, you could have: > > > RunMainLoop() > { > =A0 =A0GetMessage(); > =A0 =A0if (message) > =A0 =A0 =A0 =A0ProcessMessage(); > =A0 =A0UpdateLights(); > =A0 =A0ReadTemperature(); > } > > Adding a task manager would increase complexity and overhead. There are > cases when it is warranted, but personally I would start with a simple lo= op > and switch to using a task manager when I saw the need for it. > > Vitaliy I was thinking of doing it this way initially and returning out of each "task" as quickly as possible so that there is CPU time to spare for all tasks. -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist