Advertisement

vxvorks学习(多任务)

阅读量:

多任务实例分析

1、任务创建机制分析

复制代码
    int taskSpawn(
    	char *name,               //新任务的名字,储存在psTackBase
    	int   poiority,              //任务优先级
    	int  options;               //任务选项
    	int  stacrSize;           //任务堆栈字节数
    	FUNCPTR entryPt, //任务换书入口
    	int arg1 -arg10;        //10个任务参数
    )
    int taskInit(
    	WIND_TCB *pTcb;     //新任务的任务控制块地址
    	char *name,               //新任务的名字,储存在psTackBase
    	int   poiority,              //任务优先级
    	int  options;               //任务选项
    	char * pStackBase;  //任务堆栈基地址
    	int  stacrSize;           //任务堆栈字节数
    	FUNCPTR entryPt, 

全部评论 (0)

还没有任何评论哟~