Patent ID: 8694756

Claim:
A method for invoking a multi-library application on a multiple processor system, wherein the multiple processor system comprises a First Processing Element (FPE) and a plurality of Other Processing Elements (OPEs) in a single chip the multi-library application including multiple libraries that run on the FPE, the method comprising: maintaining a status of each OPE of the plurality of OPEs, in the multi-library application running on the FPE, wherein there are OPE agents for capturing instructions from the FPE in each of the plurality of OPEs; in response to a request for invoking a first library in the multi-library application, determining, by the FPE, whether a number of available OPEs of the plurality of OPEs for invoking the first library is adequate based on a current status of each of the OPEs in the plurality of OPEs; responsive to the number of available OPEs being adequate, sending, by the FPE, a run instruction to selected OPEs; responsive to the number of available OPEs being inadequate, starting, by the FPE, one or more additional OPEs to address the inadequacy, wherein starting a given OPE in the one or more additional OPEs comprises: starting, by the FPE, the given OPE by creating an OPE thread; instructing, by the FPE, the given OPE to create an OPE agent for capturing instructions from the FPE; and sending, by the FPE, a run instruction to the given OPE; and after finishing an invocation of all libraries, sending, by the FPE, termination instructions to all of the selected OPEs.