×

Method for managing the threads of execution in a computer unit, and computer unit configured to implement said method

  • US 9,158,582 B2
  • Filed: 07/17/2013
  • Issued: 10/13/2015
  • Est. Priority Date: 07/20/2012
  • Status: Active Grant
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.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×