发明授权
- 专利标题: Method for gracefully stopping a multi-threaded application
- 专利标题(中): 正常停止多线程应用程序的方法
-
申请号: US12634814申请日: 2009-12-10
-
公开(公告)号: US08327378B1公开(公告)日: 2012-12-04
- 发明人: Reghuram R. Vasanthakumari , Anand Sridharan
- 申请人: Reghuram R. Vasanthakumari , Anand Sridharan
- 申请人地址: US MA Hopkinton
- 专利权人: EMC Corporation
- 当前专利权人: EMC Corporation
- 当前专利权人地址: US MA Hopkinton
- 代理商 Krishnendu Gupta; Robert Kevin Perkins; Joseph D'Angelo
- 主分类号: G06F3/00
- IPC分类号: G06F3/00 ; G06F9/44 ; G06F9/46 ; G06F13/00
摘要:
A method, system, and a computer program product for gracefully stopping a multi-threaded application. An aspect of the present invention requires each thread in a multi-threaded application to acquire a work permit before performing a task and to release the work permit after completion of the performance of the task. The multi-threaded application is stopped only when all of the work permits have been released by the threads in the application. The release of all of the set of work permits indicates that all the currently performing tasks/threads are completed, thereby “gracefully” stopping the multi-threaded application.