Method for task execution control in a processor system and task execution control
By assigning execution priorities to tasks and switching to delayed mode during initialization, the problem of inconsistent initialization of software components in multi-core processor systems is resolved, ensuring data integrity and system stability, and optimizing the use of computing and storage resources.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SCHAEFFLER TECHNOLOGIES AG & CO KG
- Filing Date
- 2024-10-30
- Publication Date
- 2026-06-09
AI Technical Summary
In multi-core processor systems, inconsistent initialization of software components may lead to different states or values when different software components of the control unit evaluate the input of the same component, resulting in inconsistent system behavior and even triggering critical situations.
By assigning different execution priorities to tasks and switching the task system to delayed mode when an initialization request is detected, low-priority tasks are ensured to pause execution, initialization tasks are performed, and the program variables of software components are converted to predetermined states within a predetermined time period to ensure data integrity before resuming normal operation.
It achieves high data integrity in the processor system, shortens initialization time, reduces the need for buffer storage space, optimizes computation time and storage space requirements, and avoids conflicts between control unit functions.
Smart Images

Figure CN122180946A_ABST
Abstract
Claims
1. A method for performing execution control of tasks (TA) in a processor system (10) of a control unit (1), wherein - the processor system (10) comprises a single-core processor having a single processor core or a multi-core processor having multiple processor cores (Core1, Core2) and a real-time operating system (20), wherein the real-time operating system (20) comprises a task system (30) which has tasks (TA) that can be executed repeatedly or sporadically, and at least one of two different execution priorities is assigned to each task, - the processor system (10) comprises software components (SWC), each of which can be executed on one or more processor cores (Core1, Core2) and by which functions assigned to the control unit (1) are implemented, and the method comprises the following steps: - running the task system (30) in the normal operating mode of a single processor core, a selected processor core among multiple processor cores (Core1, Core2), or all processor cores (Core1, Core2) among multiple processor cores (Core1, Core2), - detecting an initialization request of the processor system, wherein the initialization request is triggered by a predetermined event, - in response to detecting the initialization request, converting the task system (30) of a single processor core, a selected processor core (Core1, Core2), or all processor cores (Core1, Core2) to a delay mode as appropriate, such that during a subsequent predetermined initialization time span, at least the tasks (TA) assigned the lowest execution priority among the execution priorities are not executed on a single processor core, a selected processor core, or all processor cores as appropriate, - during the predetermined initialization time span, performing respective initialization tasks on a single processor core, a selected processor core (Core1, Core2), or all processor cores (Core1, Core2) as appropriate, wherein by the respective initialization tasks, all or most of the program variables of the software components (SWC) of the processor core on which the respective initialization tasks are performed are transferred to a predetermined state, - after the end of the predetermined initialization time span, converting the task system (30) to the normal operating mode of a single processor core, a selected processor core, or all processor cores (Core1, Core2) as appropriate, wherein converting to the normal operating mode includes executing the delayed tasks (TA).
2. The method according to claim 1, wherein the task system (30) comprises k groups of tasks, k≥2, wherein the first group includes a first task (TA_P1) assigned a low execution priority, the kth group includes a kth task (TA_Pk) assigned the highest execution priority, and the step of converting the task system (30) to the delay mode comprises a step S which is performed for n = 1 to n = k - i, 0≤i<k, starting from n = 1, and step S includes: - Continue to execute the nth task (TA_Pn) that is already running until it is completed, and delay the execution of the nth task (TA_Pn) that is activated for execution by the task scheduler but has not yet started. - If step S is completed for the nth task (TA_Pn) on a single processor core, selected processor cores (Core1, Core2), or all processor cores (Core1, Core2) as appropriate, then repeat step S with n = n + 1.
3. The method according to claim 1, wherein the task system (30) comprises k groups of tasks, k ≥ 2, where the first group includes the first task (TA_P1) assigned a low execution priority, the kth group includes the kth task (TA_Pk) assigned the highest execution priority, and the step of transitioning the task system (30) to the delay mode comprises step S, which is performed for n = 1 to n = k - i, 0 ≤ i < k, starting from n = 1, and step S includes: - Continue to execute the nth task (TA_Pn) that is already running on respective processor cores (Core1, Core2) until it is completed, and delay the execution of the nth task (TA_Pn) of the respective processor cores that is activated for execution by the task scheduler but has not yet started. - If step S is completed for the nth task (TA_Pn) on the respective processor cores (Core1, Core2), then repeat step S with n = n + 1.
4. The method according to any one of the preceding claims, where - The phase of transitioning to the delay mode starts simultaneously on selected processor cores (Core1, Core2) or all processor cores (Core1, Core2) as appropriate, and / or - The initialization time span starts simultaneously on selected processor cores (Core1, Core2) or all processor cores as appropriate, and / or - The phase of transitioning to the normal operating mode starts simultaneously on selected processor cores (Core1, Core2) or all processor cores (Core1, Core2) as appropriate.
5. The method according to any one of the preceding claims, where During the transition of the task system (30) to the delay mode, information on the delay of respective tasks (TA) is stored at least for at least some of the tasks (TA) whose execution is delayed.
6. The method according to any one of the preceding claims, wherein the execution of the delayed task (TA) is based on the execution priority of the delayed task (TA).
7. The method according to any one of claims 2 to 6, wherein during the first initialization phase (C1) of the initialization time span, only the kth task (TA_Pk) is executed according to a predetermined task scheduling strategy.
8. The method according to any one of claims 2 to 7, wherein during the second initialization phase (C2) of the initialization time span, only the kth task (TA_Pk) and the delayed (k - 1)th task and / or the (k - 1)th task activated during the second initialization phase (C2) are executed.
9. The method according to any one of the preceding claims, where The control unit is the vehicle's control unit, and the predetermined events include processor reset and / or processor system shutdown and / or erasure of the contents of non-volatile memory and / or vehicle accident and / or end of vehicle driving cycle and / or detection of crankshaft position sensor signal for engine start.
10. The method according to any one of the preceding claims, in The initialization task depends on the event that triggers the initialization request.
11. The method according to any one of claims 2 to 10, in Tasks are assigned to task groups based on the event that triggers the initialization request.
12. Task execution control of a processor system (10) for a control unit (1) of a vehicle, in - The processor system (10) includes a single-core processor with a single processor core or a multi-core processor with multiple processor cores (Core1, Core2) and a real-time operating system (20), wherein the real-time operating system (20) includes a task system (30) having repeatable or sporadic tasks (TAs), and each task is assigned one of at least two different execution priorities. - The processor system (10) includes software components (SWCs), each of which can execute on one or more processor cores (Core1, Core2) and implement the functions assigned to the control unit (1) through them. - The task execution control is configured to perform the method steps of any one of claims 1 to 11.
13. A control unit (1) for a vehicle, comprising a processor system (10) for task execution control according to claim 8. in - The processor system (10) includes a single-core processor with a single processor core or a multi-core processor with multiple processor cores (Core1, Core2) and a real-time operating system (20), wherein the real-time operating system (20) includes a task system (30) having repeatable or sporadic tasks (TAs), and each task is assigned one of at least two different execution priorities. - The processor system (10) includes software components (SWC), each of which can be executed on one or more processor cores (Core1, Core2) and implement the functions assigned to the control unit (1).
14. A computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 11.
15. A computer-readable medium comprising instructions, which, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 11.