Patent ID: 9710288
Date: 2017-07-18
CPC Classifications: G06F

Claim:
1. A method for loading an application, comprising: starting up, by a machine to machine (M2M) terminal module, an application manager after being powered up and initialized; receiving, by the application manager, a load application instruction and creating a load thread; and loading, by the load thread, the application according to the load application instruction and ending the load thread after execution of the application is completed; wherein after loading the application and before the execution of the application is completed, the method further comprises: when executing the application, triggering a soft interruption exception until a soft interruption instruction is executed and entering a soft interruption server program, wherein the soft interruption server program executes a secondary development interface function corresponding to the soft interruption instruction according to the soft interruption instruction and a locally stored correlation between the soft interruption instruction and the secondary development interface function, wherein the correlation of the soft interruption instruction and the secondary development interface function is based upon a soft interruption number corresponding to the secondary development interface function stated in a head file of the application; and returning to continue executing the application after the execution of the secondary development interface function is completed, wherein the secondary development interface function comprises functions corresponding to services comprising at least one of short message, voice, data transmission and customized communication protocol stack: or the secondary development interface function comprises functions corresponding to access and use of mirror system resources during execution of the application.