CN103049311A - Integration scheduling algorithm of subregion operation system - Google Patents

Integration scheduling algorithm of subregion operation system Download PDF

Info

Publication number
CN103049311A
CN103049311A CN2011103059662A CN201110305966A CN103049311A CN 103049311 A CN103049311 A CN 103049311A CN 2011103059662 A CN2011103059662 A CN 2011103059662A CN 201110305966 A CN201110305966 A CN 201110305966A CN 103049311 A CN103049311 A CN 103049311A
Authority
CN
China
Prior art keywords
subregion
scheduling
priority
task
ready
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011103059662A
Other languages
Chinese (zh)
Other versions
CN103049311B (en
Inventor
李燕
尹立孟
戴凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING KEYIN JINGCHENG TECHNOLOGY Co Ltd
Original Assignee
BEIJING KEYIN JINGCHENG TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING KEYIN JINGCHENG TECHNOLOGY Co Ltd filed Critical BEIJING KEYIN JINGCHENG TECHNOLOGY Co Ltd
Priority to CN201110305966.2A priority Critical patent/CN103049311B/en
Publication of CN103049311A publication Critical patent/CN103049311A/en
Application granted granted Critical
Publication of CN103049311B publication Critical patent/CN103049311B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to an integration scheduling algorithm of a subregion operation system. The algorithm includes classifying a subregion into a core subregion and a common subregion, conducting time table scheduling, priority scheduling and time slice scheduling on the common subregion, conducting priority and time slice scheduling on any task in the subregion and adopting a 8*32 bitmap to manage a ready priority scheduling subregion and the priority of ready tasks (0-255). The integration scheduling algorithm can quickly and reliably select the top priority ready subregion in the priority scheduling subregion and top priority ready tasks, compares tasks in the core subregion and the common subregion, selects tasks with high priority to conduct operation, and provides high-reliability scheduling mechanism which can operate in real time for the subregion operation system.

Description

The synthesization dispatching algorithm of division operation system
The technical field subregion
The present invention is a kind of synthesization dispatching algorithm for the division operation system.
Background is described
At present, dissimilar division operation system call algorithms is variant again general character, be necessary to study wherein difference and common technology, reduce research and development and maintenance cost, and need to guarantee the highly reliable and real-time of scheduling, so this just need to provide a kind of synthesization dispatching algorithm for the division operation system.
Summary of the invention
The present invention comprises concrete feature content to be had:
Subregion is categorized as core subregion and common subregion
Classification of task is task in idle task and the subregion
Manage ready task in ready priority scheduling subregion and core subregion and the common subregion with four ready chained lists
Adopt the ready priority scheduling subregion of bitmap management of 8x32 and the priority of ready task 0-255
Highly reliable real-time multi-stage scheduling
Embodiment
1. subregion is categorized as core subregion and common subregion
Subregion is the supvr of resource, and subregion is categorized as unique core subregion and the time scheduling table of user's attitude operation and the common subregion of priority scheduling of kernel mode operation.The priority of priority scheduling subregion is 0-255.The kernel mode subregion be mainly used in monitoring and administrative time dispatch list and priority scheduling subregion.Common subregion is owing to the monitoring of core subregion, and reliability is improved.
2. classification of task is task in idle task and the subregion
Have unique idle task in the system, it does not belong to any subregion, operates in kernel mode.Task is by partition creating and startup in the subregion, and it is the performance element in the subregion, and priority is 0-255.When only task was not moved in core subregion and common subregion, idle task was just moved.
3. adopt four ready chained lists to manage ready task in ready priority scheduling subregion and core subregion and the common subregion
System uses a ready chained list management priority to be all ready priority scheduling subregions of 0-255.It is all ready tasks of 0-255 that core subregion, time scheduling table subregion and priority subregion are managed the interior priority of this subregion with a ready chained list respectively.A ready chained list is comprised of 256 ready chains, ready subregion or the task of a priority of every ready chain management.Idle task is not on any ready chain.
4. adopt the ready priority scheduling subregion of bitmap management of 8x32 and the priority of ready task 0-255
In the bitmap management of 8x32, task priority is 0-255 in priority scheduling subregion or the subregion, priority moves to right value 0-7 after 5 as priority main rope quotation marks, low effective 5 the value 0-31 of priority is as priority secondary index number, use 8 bitmaps as priority main rope quotation marks bitmap, use 8 group of 32 bitmap as secondary index bitmap corresponding to 8 main rope quotation marks of priority, priority secondary index bitmap is 32 bitmaps corresponding to main rope quotation marks group, and the call number of corresponding position is the main rope quotation marks of priority or secondary index number in the bitmap.
When priority scheduling subregion or task become ready attitude, position, position that priority main rope quotation marks are corresponding in priority main rope quotation marks bitmap, in priority secondary index bitmap, with the position, position of priority secondary index correspondence, and ready subregion or task be added on the corresponding priority ready chain.
When ready priority scheduling subregion or ready task become non-ready attitude, non-ready subregion or task are extractd from corresponding priority ready chain.If do not have subregion or task on the corresponding priority ready chain of non-ready subregion or task, then in priority secondary index bitmap with the bit clear of priority secondary index correspondence.If the every place value in the priority secondary index bitmap all is 0, then in priority main rope quotation marks bitmap with bit clear corresponding to priority main rope quotation marks.
During the limit priority ready task, if the every place value in the priority main rope quotation marks bitmap all is 0, then subregion is abandoned scheduling under all priority scheduling subregions or the task in the ready subregion of the limit priority that obtains the priority scheduling subregion or subregion.Otherwise, in priority main rope quotation marks bitmap, obtain place value and be 1 lowest order call number as limit priority main rope quotation marks, obtain place value and be 1 lowest order call number in limit priority secondary index bitmap as limit priority secondary index number, limit priority is that move to left value after 5 of limit priority main rope quotation marks adds limit priority secondary index number.First subregion on the limit priority subregion ready chain is the ready subregion of limit priority that participates in the scheduling of priority subregion, and first task on the limit priority task ready chain is the limit priority ready task that participates in task scheduling in the subregion.When obtaining the limit priority of ready subregion and task, no matter how many limit priorities is, the time of obtaining all is the same, and the algorithm that obtains limit priority is highly reliable and fast.
5. highly reliable real-time multi-stage scheduling
Time scheduling table, priority and three kinds of scheduling modes of timeslice are supported in the subregion scheduling.Allowed a plurality of time scheduling tables in the system, can when operation, change the time scheduling table, but any moment there is a time scheduling table to participate in scheduling at the most.Time scheduling list scheduling subregion must be in the time scheduling table setup time window, and when system has used this time scheduling table to dispatch, could participate in scheduling.The time scheduling list scheduling is that time window subregion and core subregion are moving when busy time window.The priority scheduling subregion is merely able at the free time of time scheduling list scheduling window and free time of time window subregion operation, and the subregion that priority is identical is supported time slice scheduling.
During task scheduling, there is the attribute that whether is preempted in task, and when task does not allow to seize, only has when task and initiatively abandons processor, and other task just can be scheduled and obtain processor; When task allowed to seize, the same priority task was dispatched according to the round-robin mode in the subregion.High-priority task need to guarantee that it is preferentially carried out by designated high priority.
When scheduling, the task that is scheduled is selected by system from following three ready chained lists: the current ready chained list of time window subregion that carries out the time scheduling list scheduling (if free time window or the time window subregion be not normal state, task does not participate in scheduling on this chained list), the ready chained list of core subregion is not (if the core subregion is normal state, task does not participate in scheduling on this chained list), the ready chained list of limit priority subregion in the priority scheduling subregion (if limit priority scheduling subregion is not normal state, task does not participate in scheduling on this chained list).If three ready chained lists are taken up an official post be engaged in not participating in not having task on scheduling or the ready chained list, then move idle task.Whether idle window of current time window is at first judged by system, and whether the time windows scheduling subregion normal state, whether has ready task in the subregion:
The current time window is that idle window or time windows scheduling subregion are not have ready task in the time window subregion of normal state or normal state: the limit priority ready task of core subregion and the limit priority ready task of priority scheduling subregion are carried out priority ratio, get the high-priority task operation among both, the limit priority ready task of the identical operation core of priority subregion;
It is to have ready task in normal state and the subregion that the current time window exists subregion and subregion: the limit priority ready task of core subregion and the limit priority ready task of time scheduling list scheduling subregion are carried out priority ratio, get the high-priority task operation among both, the limit priority ready task of the identical run-time scheduling list scheduling of priority subregion.
Description of drawings
In the Figure of description: Fig. 1 is that priority is that 42 the ready task position in bitmap arranges example; Fig. 2 is the time window of time scheduling list scheduling subregion on the time scheduling table; Fig. 3 is the selection course of operation subregion and operation task.

Claims (1)

1. synthesization dispatching algorithm for the division operation system, the scheduling process of finishing a telotism contain following some:
1. the time scheduling list scheduling is that time window subregion and core subregion are moving when busy time window.
2. the priority scheduling subregion is merely able at the free time of time scheduling list scheduling window and free time of time window subregion operation.
Adopt the ready priority scheduling subregion of bitmap management of 8x32 and the priority of ready task 0-255, the ready subregion of limit priority in the selection priority scheduling subregion of energy fast and reliable and the limit priority ready task in the subregion.
3. the interior limit priority ready task of limit priority ready task and time scheduling list scheduling subregion and the interior limit priority ready task of priority scheduling subregion are determined the finally task of operation by the mode that compares priority in the core subregion.
4. when scheduling, the task that is scheduled is selected by system from following three ready chained lists: the current ready chained list of time window subregion that carries out the time scheduling list scheduling (if free time window or the time window subregion be not normal state, task does not participate in scheduling on this chained list), the ready chained list of core subregion is not (if the core subregion is normal state, task does not participate in scheduling on this chained list), the ready chained list of limit priority subregion in the priority scheduling subregion (if limit priority scheduling subregion is not normal state, task does not participate in scheduling on this chained list).If three ready chained lists are taken up an official post be engaged in not participating in not having task on scheduling or the ready chained list, then move idle task.Whether idle window of current time window is at first judged by system, and whether the time windows scheduling subregion normal state, whether has ready task in the subregion:
5. the current time window is that idle window or time windows scheduling subregion are not have ready task in the time window subregion of normal state or normal state: the limit priority ready task of core subregion and the limit priority ready task of priority scheduling subregion are carried out priority ratio, get the high-priority task operation among both, the limit priority ready task of the identical operation core of priority subregion;
6. to have subregion and subregion be to have ready task in normal state and the subregion to the current time window: the limit priority ready task of core subregion and the limit priority ready task of time scheduling list scheduling subregion are carried out priority ratio, get the high-priority task operation among both, the limit priority ready task of the identical run-time scheduling list scheduling of priority subregion.
CN201110305966.2A 2011-10-11 2011-10-11 The synthesization dispatching algorithm of partition operating system Active CN103049311B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110305966.2A CN103049311B (en) 2011-10-11 2011-10-11 The synthesization dispatching algorithm of partition operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110305966.2A CN103049311B (en) 2011-10-11 2011-10-11 The synthesization dispatching algorithm of partition operating system

Publications (2)

Publication Number Publication Date
CN103049311A true CN103049311A (en) 2013-04-17
CN103049311B CN103049311B (en) 2017-09-01

Family

ID=48061961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110305966.2A Active CN103049311B (en) 2011-10-11 2011-10-11 The synthesization dispatching algorithm of partition operating system

Country Status (1)

Country Link
CN (1) CN103049311B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104375893A (en) * 2014-11-29 2015-02-25 中国航空工业集团公司第六三一研究所 Partition scheduling method based on two-stage operating system structure
CN105045666A (en) * 2015-07-09 2015-11-11 西北工业大学 Method for partition scheduling in Windows operating system environment
CN105550027A (en) * 2015-12-09 2016-05-04 中国航空工业集团公司西安航空计算技术研究所 Switching method for multiple time scheduling tables based on partition operation system
CN105988867A (en) * 2015-01-29 2016-10-05 北京科银京成技术有限公司 Speed group scheduling algorithm based on time-sharing and partitioned operation system
CN107544843A (en) * 2017-08-28 2018-01-05 北京翼辉信息技术有限公司 A kind of partition system dispatching algorithm
CN114816720A (en) * 2022-06-24 2022-07-29 小米汽车科技有限公司 Scheduling method and device of multi-task shared physical processor and terminal equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040078543A1 (en) * 2002-10-17 2004-04-22 Maarten Koning Two-level operating system architecture
US20050132121A1 (en) * 2003-12-16 2005-06-16 Wind River Systems, Inc. Partitioned operating system tool

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040078543A1 (en) * 2002-10-17 2004-04-22 Maarten Koning Two-level operating system architecture
US20050132121A1 (en) * 2003-12-16 2005-06-16 Wind River Systems, Inc. Partitioned operating system tool

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
俞慎等: "航空电子嵌入式实时操作系统的安全策略", 《计算机工程》 *
李运喜等: "时间分区的设计与实现", 《航空计算计算》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104375893A (en) * 2014-11-29 2015-02-25 中国航空工业集团公司第六三一研究所 Partition scheduling method based on two-stage operating system structure
CN105988867A (en) * 2015-01-29 2016-10-05 北京科银京成技术有限公司 Speed group scheduling algorithm based on time-sharing and partitioned operation system
CN105988867B (en) * 2015-01-29 2020-01-21 北京科银京成技术有限公司 Rate group scheduling method based on time-sharing partition operating system
CN105045666A (en) * 2015-07-09 2015-11-11 西北工业大学 Method for partition scheduling in Windows operating system environment
CN105045666B (en) * 2015-07-09 2018-06-01 西北工业大学 Subregion dispatching method under Windows operating system environment
CN105550027A (en) * 2015-12-09 2016-05-04 中国航空工业集团公司西安航空计算技术研究所 Switching method for multiple time scheduling tables based on partition operation system
CN107544843A (en) * 2017-08-28 2018-01-05 北京翼辉信息技术有限公司 A kind of partition system dispatching algorithm
CN114816720A (en) * 2022-06-24 2022-07-29 小米汽车科技有限公司 Scheduling method and device of multi-task shared physical processor and terminal equipment
CN114816720B (en) * 2022-06-24 2022-09-13 小米汽车科技有限公司 Scheduling method and device of multi-task shared physical processor and terminal equipment

Also Published As

Publication number Publication date
CN103049311B (en) 2017-09-01

Similar Documents

Publication Publication Date Title
CN106802826B (en) Service processing method and device based on thread pool
CN103049311A (en) Integration scheduling algorithm of subregion operation system
US7559062B2 (en) Intelligent scheduler for multi-level exhaustive scheduling
CN104035818A (en) Multiple-task scheduling method and device
CN103197968A (en) Thread pool processing method and system capable of fusing synchronous and asynchronous features
CN104991824B (en) A kind of method and system in switching at runtime application data source
CN111399989A (en) Task preemption scheduling method and system for container cloud
CN101963922B (en) Task processing method and device
CN103365718A (en) Thread scheduling method, thread scheduling device and multi-core processor system
CN103309738A (en) User job scheduling method and device
CN102096599A (en) Multi-queue task scheduling method and related system and equipment
CN105183547B (en) A kind of method for scheduling task and device of user interface
CN107301087A (en) The performance improvement method and device of a kind of multi-threaded system
Bhullar et al. Intelligent stress calculation and scheduling in segmented processor systems using buddy approach
CN104182278A (en) Method and device for judging busy degree of computer hardware resource
Parekh et al. Improved Round Robin CPU scheduling algorithm: Round Robin, Shortest Job First and priority algorithm coupled to increase throughput and decrease waiting time and turnaround time
CN103002043A (en) Method and system used for resource management of cloud environment
US20150100964A1 (en) Apparatus and method for managing migration of tasks between cores based on scheduling policy
CN116149821A (en) Cluster multi-task sliding window scheduling processing method, system, equipment and medium
Li et al. A group priority earliest deadline first scheduling algorithm
CN113268331A (en) Robot calling method, robot calling device, management system and storage medium
CN105988867B (en) Rate group scheduling method based on time-sharing partition operating system
CN112328383A (en) Priority-based job concurrency control and scheduling algorithm
CN111143210A (en) Test task scheduling method and system
CN111178791A (en) Dynamic balance task allocation method and system, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
DD01 Delivery of document by public notice

Addressee: Beijing Keyin Jingcheng Technology Co., Ltd.

Document name: Notification of Decision on Request for Restoration of Right

Addressee: Beijing Keyin Jingcheng Technology Co., Ltd.

Document name: Notification that Application Deemed to be Withdrawn

Addressee: Beijing Keyin Jingcheng Technology Co., Ltd.

Document name: Notification of Patent Invention Entering into Substantive Examination Stage

DD01 Delivery of document by public notice

Addressee: Beijing Keyin Jingcheng Technology Co., Ltd.

Document name: the First Notification of an Office Action

DD01 Delivery of document by public notice

Addressee: Beijing Keyin Jingcheng Technology Co., Ltd.

Document name: Notification that Application Deemed not to be Proposed

DD01 Delivery of document by public notice
GR01 Patent grant
GR01 Patent grant
DD01 Delivery of document by public notice

Addressee: Li Min

Document name: Notification of conformity

DD01 Delivery of document by public notice