发明名称 Post-return asynchronous code execution
摘要 A method, system, and computer program product for the prioritization of code execution. The method includes accessing a thread in a context containing a set of code instances stored in memory; identifying sections of the set of code instances that correspond to deferrable code tasks; executing the thread in the context; determining that the thread is idle; and executing at least one of the deferrable code tasks. The deferrable code task is executed within the context and in response to determining that the thread is idle.
申请公布号 US9552223(B2) 申请公布日期 2017.01.24
申请号 US201414501130 申请日期 2014.09.30
申请人 International Business Machines Corporation 发明人 Fontenot Nathan;Jennings, Jr. Robert C.;Schopp Joel H.;Strosaker Michael T.;Wilson George C.
分类号 G06F9/455;G06F9/46;G06F9/48 主分类号 G06F9/455
代理机构 代理人 Bowman Nicholas D.
主权项 1. A method for prioritizing code execution without maintaining reference counts and without switching contexts, comprising: accessing a thread on a processor, wherein the thread is in a context containing a set of code instances; identifying sections of the set of code instances that correspond to deferrable code tasks, wherein identifying sections of the set of code instances comprises: receiving an input code instance;identifying a code task within the input code instance;receiving a determination that the identified code task is deferrable, wherein receiving the determination that the identified code task is deferrable includes utilizing one or more characterization factors, wherein the one or more characterization factors are selected from a group consisting of: informational data logging, housekeeping, local variable clean-up, local variable freeing, memory de-allocation, non-local data affected, and whether a return function is affected; anddecorating the code task as deferrable; executing the thread in the context; determining that the thread is idle; and executing, in the context, at least one of the deferrable code tasks, wherein the deferrable code task is executed within the context and in response to determining that the thread is idle.
地址 Armonk NY US