Patent · US Active

Mechanism for optimizing function execution

US8020155B2 · kind B2 · utility

0Cited by
15References
6Claims
0Family size

Assignee

Inventors

Key dates

Filing dateNov 28, 2006
Grant dateSep 13, 2011
Priority date
Expiry dateDec 8, 2029

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F9/4484
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

A mechanism is provided for managing the referencing of at least two versions of a function. A first version is a single threaded version that does not ensure multi-thread safety. A second version is a multi threaded version that does ensure multi-thread safety. The mechanism determines whether a set of executable code (e.g. a program) is currently executing in single-threaded mode or multi-threaded mode. If the executable code is executing in single-threaded mode, then the mechanism causes the executable code to reference the first version of the function. If the executable code is executing in multi-threaded mode, then the mechanism causes the executable code to reference the second version of the function. By doing so, the mechanism ensures that the additional overhead of ensuring multi-thread safety is incurred only when it is needed. In this manner, the mechanism makes execution of the function more optimal.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.