====== OSA : OS_Sched ======
**OS_Sched ()**\\
=== ===
Examine all tasks, select ready task with highest priority and run it. Should be called from infinite loop in main(). It is recommended to use ##[[en:osa:ref:allservices:OS_Run|OS_Run]]##() instead.
=== Call allowed: ===
Only in main()
=== Parameters: ===
None
=== Returns: ===
nothing
=== Example: ===
void main (void)
{
OS_Init();
OS_Task_Create(...);
for (;;) {
OS_Sched ();
}
}
=== See also ===
----
* [[en:osa:ref:services:alphabetical|Alphabetical]]
* [[en:osa:ref:services:brieflist|All services]]
~~UP~~