XMK Scheduler Interfaces
The kernel API provides the minimum set
of methods for creating, running, and synchronizing threads. The
specifics of the scheduling algorithm are determined by which
scheduler option is specified.
System Timer
[top]
The system timer provides elapsed time
since power-up. Time is measured in system ticks.
| |
Header File |
xmk/tmsys.h |
| |
Config Option |
USE_XMK_SYSTEM_TIMER |
The sleep interface provides a system
call to allow threads to suspend themselves for a specified amount
of time.
| |
Header File |
xmk/sleep.h |
| |
Config Option |
USE_XMK_THREAD_SLEEP or
USE_XMK_THREAD_XSLEEP |
Dynamic Threads
[top]
This interface provides methods for
dynamically creating and deleting threads once the kernel has been
started.
Enable/Disable Scheduling
[top]
This interface provides methods for
temporarily disabling context switching of application threads.
| |
Header File |
xmk/sch_eidi.h |
| |
Config Option |
USE_XMK_SCHEDULER_EI_DI_SWITCHING |
Semaphores
[top]
This interface provides counting
Semaphores for resource sharing and synchronization between threads.
| |
Header File |
xmk/sema.h |
| |
Config Option |
USE_XMK_SEMAPHORES |
This interface provides mutual exclusion
primitives for protecting shared data structures from concurrent
modifications
Thread Specific Data
[top]
This interface provides a mechanism for
the concept of global or static variables that have different values
in different threads.
| |
Header File |
xmk/tsd.h |
| |
Config Option |
USE_XMK_TSD |
|