Implementation and Application of time slice rotation scheduling in Microcontroller

Source: Internet
Author: User

Abstract: The Real-Time Multitasking system mechanism and performance are described comprehensively, and a method to realize this Real-Time Multitasking mechanism is proposed: the time slice rotation scheduling method. This scheduling algorithm is implemented in microcontroller and an example of its application in the train gate friction coefficient test system is provided.
Keywords:Real-Time Multitasking; time slice; rotation scheduling; Microcontroller

In the field of Microcomputer Control, most systems are real-time control systems. Real-time means to respond to and process random external events in a timely manner. In order to better complete real-time data collection, processing, storage and various real-time control operations, real-time and multi-task concurrency must be taken into account at the same time. Ensure that the system responds to and processes external events quickly enough, and execute multiple tasks concurrently at a macro level. The Real-Time Multitasking system relies on appropriate task scheduling methods to determine which task in the system can obtain CPU and other system resources, and which task is temporarily out of the running state, so as to achieve the purpose of real-time processing of multiple tasks. The time slice rotation algorithm is a common algorithm for multi-task scheduling. In this algorithm, if a time slice is assigned to a task, the task obtains and runs the CPU in the time slice, and then allocates the CPU to another task when the next time slice arrives. In this way, concurrent tasks run in parallel at the micro level.

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.