Floating-point context switching method

A contextual, floating-point technology, applied in the direction of program startup/switching, multi-program installation, etc., can solve problems affecting system performance, a large amount of system overhead, etc., to achieve the effect of improving performance

Active Publication Date: 2015-06-03
AVIC NO 631 RES INST
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the airborne embedded real-time operating system, users usually need to use floating-point tasks and non-floating-point tasks together, but if the operating system switches the floating-point context of each task, it will cause a lot of system overhead and affect System performance needs to propose a new floating-point task and non-floating-point task switching method to provide the possibility for efficient switching of tasks in a mixed task environment

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
  • Floating-point context switching method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] When the task is created, determine the parameters input by the user. If it is a floating-point task, apply for a floating-point context space and record the first address of the space in the member fpContext of the task control block; otherwise, set this member to NULL.

[0026] During task switching (call the task switched out of the processor the predecessor task, and the task switched into the processor as the successor task), the following four situations may occur:

[0027] 1. Switch floating-point task to floating-point task:

[0028] In this case, since both tasks will perform floating-point operations, the floating-point context needs to be saved and restored.

[0029] 2. Switch floating-point tasks to non-floating-point tasks:

[0030] In this case, since subsequent tasks will not perform floating-point operations, the context may not be saved temporarily.

[0031] 3. Switch from non-floating point tasks to floating point tasks:

[0032] In this case, since the subsequent...

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 relates to a floating-point context switching method. The method comprises the steps: 1) building a task: the task comprises a proceeding task and a successive task, wherein the proceeding task is a task switched out of a processor, and the successive task is a task switched in the processor; 2) judging whether the task built in the step 1) is a floating point task according to parameters input by a user; if the task is the floating point task, applying a floating point context space and recording a first address of the space in a member fpContext in a task control block; if the task is not the floating point task, setting a member fpContext to be NULL in the task control block; 3) judging the types of the proceeding task and the successive task; and 4) switching the floating point context according to the types of the proceeding task and the successive task. According to the floating-point context switching method provided by the invention, the task switching performance can be improved.

Description

Technical field [0001] The invention belongs to the field of computer software control, and relates to a floating-point context switching method. Background technique [0002] In the onboard embedded real-time operating system, users usually need to use floating-point tasks and non-floating-point tasks together, but if the operating system switches the floating-point context of each task, it will cause a lot of system overhead and affect System performance requires new switching methods for floating-point tasks and non-floating-point tasks to provide the possibility for efficient switching of tasks in a mixed task environment. Summary of the invention [0003] In order to solve the problem of mixed scheduling of floating-point tasks and non-floating-point tasks in the background art, the present invention provides a floating-point context switching method that can improve the performance of task switching. [0004] The technical solution of the present invention is: the present inv...

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
IPC IPC(8): G06F9/48G06F9/46
Inventor 张东叶宏韩炜时磊李运喜任晓瑞陈晓磊卫一芃曹原仝敏杨晓宁梅涛贠海顺侯光霞杨弋高东明钟珊
Owner AVIC NO 631 RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products