FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [January 2016 Threads]
Hello,
I looked through various documents and could not find how the scheduler might work, when only one task is defined. For example, take a typical super-loop routine and make it a task, the only task, such that it runs forever and never blocks/suspends. Will the scheduler even need to run after the initial call to vTaskStartScheduler() ? How will it behave?
Thanks in advance.
The scheduler behaves the same however many tasks are created. If you create only one task that never blocks and above tskIDLEPRIORITY then only your task will run. If you create it at tskIDLE priority and configUSETIMESLICING is 1 then both your task and the idle task will run. If you create it at tskIDLEPRIORITY and configUSETIMESLICING is 0 then only your task will run, but the idle task might run once first.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.