Method for managing the threads of execution in a computer unit, and computer unit configured to implement said method
First Claim
Patent Images
1. A method of managing execution threads launched by processes being executed in a computer unit having at least one calculation core connected to a shared memory, the method comprising the following steps:
- using a zone of the shared memory that is accessible to all of the processes and execution threads for the purpose of managing calculation tokens;
when a thread associated with a task seeks to execute, causing the thread to verify whether a calculation token is available;
if a calculation token is available, causing the thread to allocate itself the calculation token by updating the shared memory, followed by the thread executing, and then by the thread releasing the calculation token at the end of its execution;
if no token is available, causing the thread for execution to go on standby until a calculation token is released by a thread that has terminated its execution;
when a calculation token is released by a thread, causing that thread to identify the next thread to which the token is to be transferred, and to transfer the token thereto, where appropriate; and
each execution thread has a priority index allocated thereto, and each thread having a task that is being executed is caused periodically to verify that a thread has not been put on standby that has a priority index higher than its own, and where appropriate, causing the thread that is executing to stop executing and release the corresponding calculation token.
2 Assignments
0 Petitions
Accused Products
Abstract
A method of managing execution threads launched by processes being executed in a computer unit having at least one calculation core connected to a shared memory. The method includes the steps of:
- using a zone of the shared memory that is accessible to all of the processes and execution threads for the purpose of managing calculation tokens;
- when a thread seeks to execute, that thread verifies that a calculation token is available;
- if a calculation token is available, the thread allocates the calculation token to itself by updating the shared memory and it continues its execution, and then releases the calculation token at the end of its execution; and
- each execution thread has a priority index allocated thereto, and each thread having a task that is being executed is caused periodically to verify that a thread has not been put on standby that has a priority index higher than its own, and where appropriate, causing the thread that is executing to stop executing and release the corresponding calculation token.
A computer unit for performing the method.
-
Citations
9 Claims
-
1. A method of managing execution threads launched by processes being executed in a computer unit having at least one calculation core connected to a shared memory, the method comprising the following steps:
-
using a zone of the shared memory that is accessible to all of the processes and execution threads for the purpose of managing calculation tokens; when a thread associated with a task seeks to execute, causing the thread to verify whether a calculation token is available; if a calculation token is available, causing the thread to allocate itself the calculation token by updating the shared memory, followed by the thread executing, and then by the thread releasing the calculation token at the end of its execution; if no token is available, causing the thread for execution to go on standby until a calculation token is released by a thread that has terminated its execution; when a calculation token is released by a thread, causing that thread to identify the next thread to which the token is to be transferred, and to transfer the token thereto, where appropriate; and each execution thread has a priority index allocated thereto, and each thread having a task that is being executed is caused periodically to verify that a thread has not been put on standby that has a priority index higher than its own, and where appropriate, causing the thread that is executing to stop executing and release the corresponding calculation token. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
Specification