发明名称 Dynamic Library Replacement
摘要 Provided are techniques for an OS to be modified on a running system such that running programs, including system services, so not have to be stopped and restarted for the modification to take effect. The techniques include detecting, by a processing thread, when the processing thread has entered a shared library; in response to the detecting, setting a thread flag corresponding to the thread in an operating system (OS); detecting an OS flag, set by the OS, indicating that the OS is updating the shared library; in response to detecting the OS flag, suspending processing by the processing thread and transferring control from the thread to the OS; resuming processing by the processing thread in response to detecting that the OS has completed the updating; and executing the shared library in response to the resuming.
申请公布号 US2014282568(A1) 申请公布日期 2014.09.18
申请号 US201314097510 申请日期 2013.12.05
申请人 International Business Machines Corporation 发明人 Peckham Stephen B.
分类号 G06F9/46 主分类号 G06F9/46
代理机构 代理人
主权项 1. An apparatus, comprising: a processor; a non-transitory, computer-readable storage medium coupled to the processor; and logic, stored on the computer-readable storage medium and executed on the processor, for: detecting, by a processing thread, when the processing thread has entered a shared library;setting, in an operating system (OS) and in response to the detecting, a thread flag corresponding to the thread;detecting an OS flag, set by the OS, indicating that the OS is updating the shared library;in response to detecting the OS flag, suspending processing by the processing thread and transferring control from the thread to the OS;resuming processing by the processing thread in response to detecting that the OS has completed the updating; andexecuting the shared library in response to the resuming.
地址 Armonk NY US