【正文】
tr Shell Commands : ti Shell Commands : w Shell Commands : tw Shell Commands :checkStack Shell Commands : d Shell Commands : d Shell Commands : d Shell Commands : ls Shell Commands : pwd amp。嵌入式軟件 VxWorks編程介紹 鄒昕光 哈爾濱工業(yè)大學(xué)自動(dòng)化測(cè)控所 聯(lián)系電話: 86413531 609 Email: Agenda Task Intertask munication ISR Task Each task has its own context, which is the CPU environment and system resources that the task sees each time it is scheduled to run by the kernel. A task’s context is saved in the task control block (TCB). Task A task’s context includes: a thread of execution。 that is, the task’s program counter the CPU registers and (optionally) floatingpoint registers I/O assignments for standard input, output, and error a delay timer a timeslice timer kernel control structures signal handlers debugging and performance monitoring values Task The default task scheduling algorithm in wind is prioritybased preemptive scheduling. Round Robin is an optional algorithm. The wind kernel has 256 priority levels, numbered 0 through 255. Priority 0 is the highest and priority 255 is the lowest. Task Scheduler Control Routines Task Task Lock When a task disables the scheduler by calling taskLock(), no prioritybased preemption can take place while that task is running. If the task explicitly blocks or suspends, the scheduler selects the next highestpriority eligible task to execute. When the preemptionlocked task unblocks and begins running again, preemption is again disabled. The taskLock() prevent task context switching, but do not lock out interrupt handling. Ta