Threads/Fibers code?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Threads/Fibers code?

跳至解决方案
2,740 次查看
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 项奖励
回复
1 解答
2,539 次查看
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 项奖励
回复
3 回复数
2,540 次查看
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 项奖励
回复
2,539 次查看
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 项奖励
回复
2,539 次查看
jonr
Contributor III

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

0 项奖励
回复