Has anyone tried running ThreadX on the PIC32? They provide a demo on their website that runs on the starter kit: http://rtos.com/downloadcenter/CDForm.php?CD=3D57. It would be interesting = to compare performance numbers between that and other similar RTOSes like FreeRTOS. I've got the Pic32 Starter Kit, so I could gather some info. Obviously it's not going to be as fast as these ultra lightweight task switchers or protothreads, but may be easier to work with. I'm just now getting my hands dirty with the Pic32 and am working on a project prototype with the ChipKit Max32 that would benefit from a multithreaded environment. Cheers, Scott On Tue, Apr 23, 2013 at 10:46 AM, wrote: > > > Sorry for the typing errors above, that's what you get for having the > > > breadboard in front of the keyboard :) > > > > > > > > > On 19 April 2013 16:41, Chris Roper wrote: > > > > > >> Roam Black came up with what looks like a god one too: > > >> > > >> http://www.romanblack.com/PICthread.htm > > > > Thanks for posting that! Roman always comes up with very clever > solutions! > > > > Harold > > Just looked at Romans page, and he talks about priorities. I have > mentioned a priority system in the past that was used on a series of > machines I had dealings with, and seems to me could be implanted with ver= y > few instructions. > > Each task has a priority level, the lower the number the higher the > priority. Each round robin of tasks the priority of a task was decremente= d > by one, and on reaching 0 the task was run. Its priority was then reset t= o > the priority assigned to that task. This meant that even the lowest > priority task eventually rises to the top and is run. If needed the defau= lt > priority level for a task can be fine-tuned while running, or changed > according to a task mix if desired. The machine I dealt with had task > priorities from 1 to 99, but it would obviously be sensible to use an 8 b= it > counter on the micros we deal with. > > > > > -- > Scanned by iCritical. > > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .