摘要 |
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. |