Invention Grant
- Patent Title: Method for singleton process control
-
Application No.: US14850138Application Date: 2015-09-10
-
Publication No.: US09612864B2Publication Date: 2017-04-04
- Inventor: Mario F. Acedo , Ezequiel Cervantes , Paul A. Jennas, II , Jason L. Peipelman , Matthew J. Ward
- Applicant: INTERNATIONAL BUSINESS MACHINES CORPORATION
- Applicant Address: US NY Armonk
- Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
- Current Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
- Current Assignee Address: US NY Armonk
- Agency: Griffiths & Seaton PLLC
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F9/48 ; G06F9/445

Abstract:
A method for singleton process control in a computer environment is provided. A process identification (PID) for a background process is stored in a first temporary file. A determination operation is performed for determining if the parent process is alive for a predetermined number of tries. The PID of the background process is written from the first temporary file into a first PID variable when the parent process ends. A determination operation is performed for determining whether a second, global temporary file is empty. The background process is exited if an active PID is determined to exist in a second, global temporary file. The PID from the first temporary file is stored into the second, global temporary file. A singleton code block is then executed.
Public/Granted literature
- US20160004560A1 METHOD FOR SINGLETON PROCESS CONTROL Public/Granted day:2016-01-07
Information query