发明名称 Dynamically updating code without requiring processes to restart
摘要 A method, system and computer program for dynamically updating code managed by an authorized agent. The method includes executing multiple versions of agent code in system memory. One version of the agent code is executed as an active version and another version of the agent code is executed as an inactive version. Version numbers of the active and inactive versions of the agent code are stored in a reloadable module vector. Client instances previously bound to the inactive version of the agent code are bound to the active version of the agent code after comparing the version numbers of the active version of the agent code and the inactive version of the agent code. A portion of the system memory used by the inactive version of the agent code is deallocated when no client instances are bound to the inactive version of the agent code.
申请公布号 US8997047(B2) 申请公布日期 2015.03.31
申请号 US201213714383 申请日期 2012.12.13
申请人 International Business Machines Corporation 发明人 Follis David A.;Kaczynski Timothy D.;Sykes Matthew J.
分类号 G06F9/44;G06F9/445 主分类号 G06F9/44
代理机构 代理人 Tuchman Ido;Uddin Rahan
主权项 1. A system for dynamically updating agent code managed by an authorized agent, the system comprising: a system memory; a computer processor coupled to the system memory;an executing unit coupled to the computer processor, the executing unit to execute multiple versions of agent code in the system memory, wherein one version of the agent code is executed as an active version and another version of the agent code is executed as an inactive version;a storing unit to store version numbers of the active version of the agent code and the inactive version of the agent code in a reloadable module vector; a binding unit to bind client instances previously bound to the inactive version of the agent code to the active version of the agent code after comparing the version numbers of the active version of the agent code and the inactive version of the agent code; and a deallocating unit to deallocate a portion of the system memory used by the inactive version of the agent code when none of the client instances are bound to the inactive version of the agent code; wherein the computer processor is configured to register an exit point which is driven when the client instance terminates; wherein the computer processor is configured to decrement an agent count associated with the inactive version of the agent code when the exit point is driven, the agent count managed by the reloadable module vector; and wherein the inactive version of the agent code is deallocated when the agent count is decremented to zero.
地址 Armonk NY US