Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for managing multiple tasks of software based on C language

A management software, multitasking technology, applied in the field of intelligent management, can solve the problems of increasing debugging difficulty, large amount of code, affecting development efficiency, etc., to achieve strong reproducibility and portability, good code encapsulation and high debugging efficiency. Effect

Active Publication Date: 2019-08-20
BEIJING SMARTCHIP MICROELECTRONICS TECH COMPANY +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004]1. A single function has more and more functions, and the amount of code is getting larger and larger
[0005]2. New and old bugs are intertwined. When debugging, it is necessary to distinguish whether it is a legacy bug or a newly introduced bug, which increases the difficulty of debugging.
[0006]3. The person who takes over the development later needs to read through the code developed before. Due to the programming style and habits, it often takes time to take over smoothly, which affects the development efficiency
[0007]4. Poor code encapsulation and poor portability

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for managing multiple tasks of software based on C language

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment

[0031] The method for realizing management software multitasking based on C language comprises the following steps:

[0032] 1. As mentioned above, each task in TCB is defined as a node, and the purpose of task management is achieved through the management of nodes. First, it is necessary to define the management functions of TCB, including TCB scheduling and dispatching task functions, and traversing TCB tasks Linked list functions, adding node functions to the TCB management linked list, deleting specified nodes to the TCB management linked list, deleting the entire TCB management linked list, searching for specified nodes through command IDs, traversing the entire TCB linked list and calling its task functions in turn.

[0033] 2. Determine the task ID, task type, initialization entry function and exit function according to the requirements, and create a single task collection TCB task. Take creating a server monitoring task as an example: define the task ID as SERVER_CONNE...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for managing multiple tasks of software based on a C language, which comprises the following steps: (a) determining a task ID, a task type, an initialization entry function and an exit function according to requirements, and creating a collection (TCB) task of a single task; (b) registering a command set of task IDs in the TCB so as to adapt to different task processing flows according to different ID commands; (c) registering different processing functions connected with the server according to different ID commands; (d) adding the task of the TCB completing the processing function registration to a task management linked list, and setting the running state of the task ID; (e) finding a processing function corresponding to the task ID in the TCB task management linked list through the task ID, setting an operation tagging bit, and starting operation; and (f) repeating the steps (a) to (e), and creating a next task. The method provided by the inventioncan be compatible with previous codes for rapid iterative development, and the debugging efficiency is improved.

Description

technical field [0001] The invention relates to an intelligent management method for realizing multiple tasks, in particular to a method for realizing multiple tasks of management software based on C language. Background technique [0002] The realization of software functions is realized by programs. In the actual programming process, function development will be carried out according to the overall design or the needs of users. However, due to multi-tasking development in many cases, during the development process or after the development is completed, it often occurs that the previous plan is not comprehensive enough or the user increases the need, so the developer will iteratively develop on the original code, so the volume of a single function It will become bigger and bigger, and then there will be various bugs. The old bugs have not been resolved, and the newly written code will introduce various uncertain bug hidden dangers. The debugging process is even more miserab...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/71G06F8/10G06F8/30
CPCG06F8/71G06F8/10G06F8/315
Inventor 黄波陈河唐玉建李涛张振
Owner BEIJING SMARTCHIP MICROELECTRONICS TECH COMPANY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products