CN101266556A - Multitask scheduling system - Google Patents

Multitask scheduling system Download PDF

Info

Publication number
CN101266556A
CN101266556A CNA2008101062052A CN200810106205A CN101266556A CN 101266556 A CN101266556 A CN 101266556A CN A2008101062052 A CNA2008101062052 A CN A2008101062052A CN 200810106205 A CN200810106205 A CN 200810106205A CN 101266556 A CN101266556 A CN 101266556A
Authority
CN
China
Prior art keywords
application program
module
application
thread
multiple tasks
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.)
Pending
Application number
CNA2008101062052A
Other languages
Chinese (zh)
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.)
BEIJNG TAIDESIDA SCI-TECH DEVELOPMENT Co Ltd
Original Assignee
BEIJNG TAIDESIDA SCI-TECH DEVELOPMENT 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 BEIJNG TAIDESIDA SCI-TECH DEVELOPMENT Co Ltd filed Critical BEIJNG TAIDESIDA SCI-TECH DEVELOPMENT Co Ltd
Priority to CNA2008101062052A priority Critical patent/CN101266556A/en
Publication of CN101266556A publication Critical patent/CN101266556A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a multi-task dispatching system, the system includes: an administration module and an application program module. The modules move in an identical thread. The administration module controls various application procedures in the application program module, and at most, only one has to be at the running status in a plurality of application procedures at random time; with the multi-task dispatching system of the invention, a user interactive system with simple design, taking small system resources and easy to operate and so on may be realized.

Description

A kind of multiple tasks dispatching system
Technical field
The present invention relates to computer application field, relate in particular to a kind of multiple tasks dispatching system.
Background technology
Real time operating system is the basis and the development platform of embedded application software, is a reliability and credible very high real-time kernel.RTOS wires up resources such as CPU time, interruption, I/O, timer, leave API (the Application Program Interface of a standard of user for, and, reasonably between different task, distribute CPU time application programming interfaces), according to the priority of each task.
RTOS is arranged at usually and finishes various functions in the embedded system in real time, and these embedded systems have usually that real-time is fine, system bulk is little, resource-constrained and do not have characteristics such as graphical interfaces.Typical R TOS has: Vxworks, pSOS, Nucleus, eCos, uC/OS-II etc.
GUI (Graphic User Interface, graphical user interface) system realizes man-machine interaction in the mode of figure, scheduling mechanism is the core of GUI system, and driving and each application program of management GUI system realize the shared use of each application program to cpu resource.High performance GUI scheduling mechanism not only takies cpu resource seldom, and can respond user's request fast.
The shortcoming of above-mentioned GUI of the prior art system is: the thread scheduling that the scheduling of above-mentioned GUI system uses kernel to provide fully, whether each application program is no matter need interface display all to have thread independently to receive the scheduling of operating system.Do support based on the operating system that bottom is powerful, though the design of each application program has great dirigibility,, each application program is too heavy to the dependence of underlying operating system, usually need the support of the operating system of hardware and software platform, such as Windows or (SuSE) Linux OS.
The resource overhead of above-mentioned GUI system is huge, and the application demand of can not adaptive functions clear and definite low profile edge system is not generally supported the operating system of RTOS as bottom.In addition, also do not need complicated GUI system for Embedded Application, too Fu Za GUI in fact can reduce the simplicity of user's operation.
Summary of the invention
For solving above-mentioned middle problem and the defective that exists, the invention provides a kind of multiple tasks dispatching system.
The present invention is achieved by the following technical solutions:
A kind of multiple tasks dispatching system involved in the present invention, comprise: administration module and application program module, administration module, run on same thread with application program module, and in separate threads management each application program in the application program module, be in application state to have only an application program in the controlling application program.Application program module runs on same thread with administration module, and comprises a plurality of application programs that realize the different task function respectively.
Described multiple tasks dispatching system also comprises: resources bank comprises picture resource and/or literal resource that supply is used with each application program in the program module; The input method driver module drives the input method of carrying out the literal input in UI administration module, application program module, resources bank.
Described administration module also comprises the application maintenance module: create in application program module and the deletion application program, controlling at any time to have an application program of moving at most in the multiple tasks dispatching system; Thread management module: in multiple tasks dispatching system, create and manage a separate threads; The application program interrupt module: the application program that will move is interrupted, and all related context informations of the application program of interrupting are sent to program stack, and program stack is preserved this related context information; The application recovery module: after the application program of moving withdraws from, the application program that is kept at last in the program stack being discharged, is running status with the application recovery that discharges.
Described application program module also comprises: the thread maintenance module: establishment and maintenance and common another the different thread of thread that uses of described UI administration module and application program module in the application program of moving, this another thread can not be controlled the demonstration output of multiple tasks dispatching system, after this application program of moving withdraws from, discharge another thread of described establishment.
The beneficial effect of technical scheme provided by the invention is:
The present invention calls each application program module by unified uniqueization mode by separate threads of operation in whole multiple tasks dispatching system in this separate threads.Thereby can go up based on simple RTOS and realize fairly perfect patterned user interactive system.
Description of drawings
Fig. 1 is the structural representation of the embodiment of multiple tasks dispatching system;
Fig. 2 is the structural representation of the administration module among the embodiment of multiple tasks dispatching system.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing:
Present embodiment provides a kind of structure of multiple tasks dispatching system.
Referring to Fig. 1, the described multiple tasks dispatching system of this method is applicable to the user interactive system based on RTOS, such as the GUI system.With the GUI system is example, and the structure of the embodiment of multiple tasks dispatching system of the present invention comprises as shown in Figure 1 as lower module: administration module, application program module, input method drive and resources bank.The function of each module is as follows:
Administration module is UI (User Interface, a user interface) administration module, and the structure of its this administration module as shown in Figure 2.According to each application program in the mode invokes application module of unified uniqueization, carry out interacting message with each application program, management each application program in the application program module, controlling can only have one at most in described a plurality of application program and be in running status.Create and manage the thread of GUI system and each application program of management and run on same thread, this thread can be separate threads.Have display interface.The UI administration module comprises: thread management module, message management module, application program creation module, application program interrupt module and application recovery module.
Wherein, thread management module: in the GUI system, create and manage a separate threads, finish application programs all in the GUI system by this separate threads.GUI system's use separate threads of the present invention can guarantee that each application program can not cause resource contention because of the while request resource, and the user can not carry out two application programs simultaneously, but can switch between two application programs.Above-mentioned separate threads can be existing thread in the GUI system.
Wherein, message management module: by using the message call interface of single formationization, each application program and each application program in the invokes application module are carried out interacting message.The variety of event of entire GUI system (control command that comprises the result of user key-press, external interrupt or order, various tasks) all is converted into message.
All message of message management resume module all have unified data structure, comprise in this data structure: message id and message parameter, can identification message by message id, message parameter comprises the various information that message is relevant, if the various information that message is relevant can not use a simple value to express, this message parameter is exactly a pointer, points to concrete message data structure.
The message that the message management module at first issues needs sends to the application program of current operation, if the application program of this current operation is not handled the message that receives, then return particular value to the message management module, the message management module is done default treatment to this message.Such as dislodging machine message of overall importance all is to come default treatment by the message management module in the UI administration module usually.
The input interface of GUI system of the present invention and other modules is unique.Because the structure of all message of GUI system is unified, the interface of UI administration module and each application program also is unique.Each application program all uses a function with identical parameters structure as invoked interface, the message management module only need be stored the pointer of this function of the current application program of moving, call this function by pointer, send message to the current application program of moving.
Wherein, application maintenance module: in the GUI system, create new application program according to the message that receives.Keep at any time an application program of moving can only be arranged at most in the GUI system.Above-mentioned message can be issued the particular message of UI administration module for the existing application program, such as, the particular message that certain application program is sent for the following level application of opening its hierarchical tree.Above-mentioned message can also be in order to finish the system message of a certain task.
The application maintenance module can also be deleted the application program in the GUI system as required.
Wherein, application program interrupt module: interrupt according to the message of certain application program transmission that receives or the application program that system message will moved, discharge the relevant resource that may produce conflict, send a Push message informing program stack to program stack and preserve related context information, all related context informations of the application program of interrupting are sent to program stack, and program stack is preserved this related context information.Then, the application program interrupt module application program of moving that the function call pointed is new.
Wherein, application recovery module: after the application program of moving withdraws from, the application program that is kept at last in the program stack is discharged, the application program that the function call pointed is discharged, with the application recovery that discharges for just in running status, send a POP message to this application program, notify it to recover the various resources of oneself safeguarding by it.Important feature of stack architecture is exactly that last in, first out, and promptly last content of preserving is removed at first.Utilize this mechanism just can guarantee that the menu mode of application program successively pushes back.
Application program module: comprise a plurality of application programs that realize the different task function respectively, each application program all uses a function with identical parameters structure as invoked interface.The UI administration module is realized corresponding task function by the interface function that calls this application program of moving.Finish when the inter-related task of this application program of moving, withdraw from and discharged its all resources that take, then, with this application program dynamically the internal memory of application also all discharge.Comprise the thread maintenance module in the described application program module.
Thread maintenance module: if operating application program is because the requirement of certain function, in the time of need opening a thread in addition and carry out a certain work (as finishing complicated compression or decoding work), then create by the thread maintenance module and safeguard another thread, and this thread must can not be controlled and shows and export by this operating application program.If (such as the incoming call ring) interrupted or finished this operating application program for a certain reason, then before new application program module operation, need to discharge another thread of above-mentioned establishment.The API that the realization of thread maintenance module can directly use RTOS to provide.
Each application program all has display interface, can notify the UI administration module to interrupt the application program of moving by send message to the UI administration module, perhaps, creates new application program.
Input method drives: be arranged in the bottom of GUI system, be used for the input method of carrying out the literal input in the GUI system is driven.
Resources bank: comprise the picture resource and the literal resource that use for each application program.
Bottom in the GUI system is a hardware layer, is provided with LCD (LCD) screen that is used to import the keyboard of user's control and is used to show, is that keyboard drive, LCD drive and display driver on hardware layer.
With above-mentioned GUI system is example, the method of multi-task scheduling of the present invention mainly comprises: UI administration module control is a plurality of to realize that respectively can only have one at most in the application program of different task function is in running status, and the application program that is in running status operates in the same thread, and this thread can be separate threads.
Described method also comprises: the UI administration module carries out interacting message according to each application program and each application program in the mode invokes application module of unified uniqueization; The message that needs are issued sends to the application program of moving, and the message that application programs does not have to handle is carried out default treatment.
The mode method of calling of uniqueization of above-mentioned unification can call the message that described each application program and described each application program have unified data structure alternately according to the pointer of the function with identical parameters structure for: UI administration module.
Described method also comprises: application program that the UI administration module will move is as required interrupted, and all related context informations of the application program of interrupting are sent to program stack, and program stack is preserved this related context information; After other application program of moving withdrawed from, the application program that described administration module will be kept in the program stack at last discharged, and was running status with the application recovery that discharges.
Establishment and maintenance another thread different in the application program of moving with described separate threads, this another thread can not be controlled the demonstration output of multiple tasks dispatching system, after this application program of moving withdraws from, discharge another thread of described establishment.

Claims (4)

1, a kind of multiple tasks dispatching system is characterized in that, described system comprises: administration module and application program module,
Administration module and application program module run on same thread, and manage each application program in the application program module in separate threads, are in application state to have only an application program in the controlling application program;
Application program module runs on same thread with administration module, and comprises a plurality of application programs that realize the different task function respectively.
2, multiple tasks dispatching system according to claim 1 is characterized in that, wherein said multiple tasks dispatching system also comprises:
Resources bank comprises picture resource and/or literal resource that supply is used with each application program in the program module;
The input method driver module drives the input method of carrying out the literal input in UI administration module, application program module, resources bank.
3, multiple tasks dispatching system according to claim 1 is characterized in that, described administration module also comprises:
The application maintenance module is created in application program module and the deletion application program, and controlling at any time to have an application program of moving at most in the multiple tasks dispatching system;
Thread management module creates and manages a separate threads in multiple tasks dispatching system;
The application program interrupt module interrupts the application program moved, and all related context informations of the application program of interrupting are sent to program stack, and program stack is preserved this related context information;
The application recovery module after the application program of moving withdraws from, discharges the application program that is kept at last in the program stack, is running status with the application recovery that discharges.
4, multiple tasks dispatching system according to claim 1 is characterized in that, described application program module also comprises:
The thread maintenance module, establishment and maintenance and common another the different thread of thread that uses of described UI administration module and application program module in the application program of moving, this another thread can not be controlled the demonstration output of multiple tasks dispatching system, after this application program of moving withdraws from, discharge another thread of described establishment.
CNA2008101062052A 2008-05-09 2008-05-09 Multitask scheduling system Pending CN101266556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101062052A CN101266556A (en) 2008-05-09 2008-05-09 Multitask scheduling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101062052A CN101266556A (en) 2008-05-09 2008-05-09 Multitask scheduling system

Publications (1)

Publication Number Publication Date
CN101266556A true CN101266556A (en) 2008-09-17

Family

ID=39988988

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101062052A Pending CN101266556A (en) 2008-05-09 2008-05-09 Multitask scheduling system

Country Status (1)

Country Link
CN (1) CN101266556A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012171137A1 (en) * 2011-06-14 2012-12-20 Intel Corporation Full screen processing in multi-application environments
CN104200629A (en) * 2014-09-01 2014-12-10 中国东方电气集团有限公司 Software system based on GPRS monitoring terminal
CN104239146A (en) * 2014-09-28 2014-12-24 东莞宇龙通信科技有限公司 System and/or application program switching method, switching system and terminal
CN103729240B (en) * 2013-12-02 2017-02-22 青岛海信电器股份有限公司 Application program control method
CN107992370A (en) * 2017-11-28 2018-05-04 上海机电工程研究所 VxWorks platform multi-tasks Software framework implementation method
WO2019047009A1 (en) * 2017-09-05 2019-03-14 深圳欣锐科技股份有限公司 Processor-based data processing method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012171137A1 (en) * 2011-06-14 2012-12-20 Intel Corporation Full screen processing in multi-application environments
US10748233B2 (en) 2011-06-14 2020-08-18 Intel Corporation Full screen processing in multi-application environments
US11301952B2 (en) 2011-06-14 2022-04-12 Intel Corporation Full screen processing in multi-application environments
CN103729240B (en) * 2013-12-02 2017-02-22 青岛海信电器股份有限公司 Application program control method
CN104200629A (en) * 2014-09-01 2014-12-10 中国东方电气集团有限公司 Software system based on GPRS monitoring terminal
CN104200629B (en) * 2014-09-01 2018-05-22 中国东方电气集团有限公司 A kind of software systems based on GPRS monitor terminals
CN104239146A (en) * 2014-09-28 2014-12-24 东莞宇龙通信科技有限公司 System and/or application program switching method, switching system and terminal
CN104239146B (en) * 2014-09-28 2018-10-26 东莞宇龙通信科技有限公司 The switching method of system and/or application program, switching system and terminal
WO2019047009A1 (en) * 2017-09-05 2019-03-14 深圳欣锐科技股份有限公司 Processor-based data processing method and device
CN107992370A (en) * 2017-11-28 2018-05-04 上海机电工程研究所 VxWorks platform multi-tasks Software framework implementation method
CN107992370B (en) * 2017-11-28 2021-01-22 上海机电工程研究所 VxWorks platform multitask software framework implementation method

Similar Documents

Publication Publication Date Title
CN101290588B (en) Micro-embedded real time task scheduling device and scheduling method
US9513962B2 (en) Migrating a running, preempted workload in a grid computing system
CN100517236C (en) Intelligent card embedded operation system and its control method
CN103984598B (en) method and system for thread scheduling
CN102934085B (en) The system and method for switching between multiple environment in multi-environment operating system
CN101266556A (en) Multitask scheduling system
CN102047218B (en) Scheduler instances in a process
CN110300328B (en) Video playing control method and device and readable storage medium
CN103473138A (en) Multi-tasking queue scheduling method based on thread pool
CN101556545B (en) Method for realizing process support, device and multithreading system
CN101452404B (en) Task scheduling apparatus and method for embedded operating system
CN103473129A (en) Multi-task queue scheduling system with scalable number of threads and implementation method thereof
CN113032152B (en) Scheduling method, scheduling apparatus, electronic device, storage medium, and program product for deep learning framework
CN104598426A (en) task scheduling method applied to a heterogeneous multi-core processor system
CN103279331A (en) Multi-task concurrent processing method and device for Android system
CN102314368A (en) Method and equipment for updating configuration data of server program
CN102404633B (en) Monitoring module, intelligent television system and television
CN109388473A (en) Android compatible layer implementation method and system based on mobile operating system
WO2017206151A1 (en) Method and device for processing multiple tasks in single task system, and single task system
CN112346834A (en) Database request processing method and device, electronic equipment and medium
CN100583049C (en) Multi-nucleus processor sharing code segment patching method and apparatus
CN101770398A (en) Operating system kernel
CN103019809B (en) Business processing device and method, and business processing control device
CN1928826A (en) Multiple tasks dispatching system and method
CN105208123A (en) Virtual desktop implementation method and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20080917