Threads/Fibers code?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Threads/Fibers code?

Jump to solution
754 Views
jonr
Contributor III

I have an application that is in need of "fibers"  (see: http://en.wikipedia.org/wiki/Fiber_(computer_science) ).  Basically, non-preemptive threads where a process can allow another process to run by calling "yield()".  At a low level, the scheduler round robins among tasks with each task having its own stack.   Is there any simple existing code for this out there?

 

 

 

 

0 Kudos
1 Solution
553 Views
jonr
Contributor III

I ended up using CocoOS.  Works great, especially after I wrote a thread to do round robin scheduling of the other threads.

 

View solution in original post

0 Kudos
3 Replies
554 Views
jonr
Contributor III

I ended up using CocoOS.  Works great, especially after I wrote a thread to do round robin scheduling of the other threads.

 

0 Kudos
553 Views
jonr
Contributor III

 

I got FreeRTOS to compile and link OK, but it doesn't actually seem to run threads.  So if anyone has it working on MPC5444 or MPC 5634, pleae let me know.

 

 

  #.section ".xcptn","ax"    # The "ax" is required to generate"non-text" code  */  .section .__exception_handlers,text  .align  16
0 Kudos
553 Views
jonr
Contributor III

FreeRTOS would also work.  Does anyone have it running with CodeWarrior on a MPC5xxx?

0 Kudos