30.12.2013 Views

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

62 CHAPTER 4. T-KERNEL/OS FUNCTIONS<br />

When, for example, the following system calls are executed for tasks A and B of the same priority, the<br />

result is as indicated below.<br />

tk_sta_tsk (tskid=task_A, stacd_A);<br />

tk_sta_tsk (tskid=task_B, stacd_B);<br />

/* By the rule of FCFS, precedence becomes task_A --> task_B. */<br />

tk_sus_tsk (tskid=task_A);<br />

tk_rsm_tsk (tskid=task_A);<br />

/* In this case precedence becomes task_B --> task_A. */<br />

Copyright c○ 2002, 2003 by T-Engine Forum<br />

T-<strong>Kernel</strong> <strong>1.B0.02</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!