ARM RTX Operating system-theory of Operation-system Resources & scheduling Options

Source: Internet
Author: User
System Resources

The RTX kernel identifies a task process through the task Process Control module. This module is a dynamically allocated memory unit that stores all the control and state variables of the task process. When a task process is created by calling the os_tsk_create or os_tsk_create_user function, the corresponding TCB is created.

The amount of memory that the TCB occupies, as defined in rtx_config.c .

The RTX kernel assigns its own stack to the task process, and the stack memory area is created with the TCB, and the TCB stores a pointer to the memory area.

Scheduling Options

The RTX kernel supports 3 different task process scheduling options for application use:

Pre-emptive scheduling

Each task process has a different priority and runs until it is preempted, or the blocked OS function is called.

Round-robin Scheduling

Each task process has the same priority and runs a fixed time period or time slice. Round-robin means that these task processes are scheduled to be cycled. Each task process will run on its own time slice until a blocked OS function is called.

Co-operative Multi-tasking

Each task process has the same priority, and Round-robin is disabled. Each process runs until it calls a blocked OS function, or calls Os_tsk_pass () to let go of its own time slice.

The default scheduling option for the RTX kernel is round-robin pre-emptive. This is enough for most applications.

ARM RTX Operating system-theory of Operation-system Resources & scheduling Options

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.