System and method for asynchronous processing in COBOL
First Claim
1. A system for employing semaphores or mutexes to coordinate processing in COBOL programs, comprising:
- a first COBOL program recorded on a non-transitory computer-readable medium having a first routine for processing;
a second COBOL program recorded on a non-transitory computer-readable medium having a second routine for processing; and
a COBOL technical layer recorded on a non-transitory computer readable medium callable by the first and second COBOL programs, the COBOL technical layer maintaining a state sharable between the first and second COBOL programs to coordinate the processing of the first and second routines, wherein the COBOL technical layer coordinates the processing of the first and second routines through a bit level call to an operating system, and wherein the COBOL technical layer further creates a semaphore, obtains an identifier identifying the semaphore, queries to determine whether the state indicates that the semaphore is locked, changes the state to indicate that the semaphore is locked, changes the state to indicate that the semaphore is unlocked, obtains a process identification number to determine a process associated with the semaphore, and removes the semaphore from a computer system.
6 Assignments
0 Petitions
Accused Products
Abstract
The present disclosure provides a method for enabling events in a COBOL program, including maintaining, in a COBOL program, a index including a process identifier and an event associated with a child process. The method includes placing the child process in a wait state and signaling, by the COBOL program, the child process to run using the process identifier and the event associated with the child process. A system for coordinating processing in COBOL programs is also provided. The system includes a first COBOL program having a first routine for processing, a second COBOL program having a second routine for processing, and a module callable by the first and second COBOL programs. The module maintains a state sharable between the first and second COBOL programs to coordinate the processing of the first and second routines.
-
Citations
15 Claims
-
1. A system for employing semaphores or mutexes to coordinate processing in COBOL programs, comprising:
-
a first COBOL program recorded on a non-transitory computer-readable medium having a first routine for processing; a second COBOL program recorded on a non-transitory computer-readable medium having a second routine for processing; and a COBOL technical layer recorded on a non-transitory computer readable medium callable by the first and second COBOL programs, the COBOL technical layer maintaining a state sharable between the first and second COBOL programs to coordinate the processing of the first and second routines, wherein the COBOL technical layer coordinates the processing of the first and second routines through a bit level call to an operating system, and wherein the COBOL technical layer further creates a semaphore, obtains an identifier identifying the semaphore, queries to determine whether the state indicates that the semaphore is locked, changes the state to indicate that the semaphore is locked, changes the state to indicate that the semaphore is unlocked, obtains a process identification number to determine a process associated with the semaphore, and removes the semaphore from a computer system. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A method for employing semaphores or mutexes to coordinate processing in COBOL programs, comprising:
-
processing by a first COBOL program to a shared resource; processing by a second COBOL program to the shared resource; maintaining, by a COBOL technical layer, a state sharable between the first and second COBOL programs to coordinate the processing by the first and second COBOL programs to the shared resource, wherein the COBOL technical layer coordinates the processing by the first and second COBOL programs through a bit level call to an operating system; creating a semaphore, by the COBOL technical layer; obtaining an identifier identifying the semaphore; querying to determine whether the state indicates that the semaphore is locked; changing the state to indicate that the semaphore is locked; changing the state to indicate that the semaphore is unlocked; obtaining a process identification number to determine a process associated with the semaphore; and removing the semaphore from a computer system. - View Dependent Claims (15)
-
Specification