Queuing Multiple Calls of the Same Application
Original Publication Date: 1987-Mar-01
Included in the Prior Art Database: 2005-Feb-01
A method is described for enabling multiple calls to be executed against the same application in a multitasking environment. In a multitasking environment, it is possible for two or more invocations of a program to be made before completion of the first invocation. Without planning for this possibility, unpredictable results would result. One solution would be to return a bad return code to an application that attempts to invoke an application already processing. This would make it necessary for the application programmer to handle the collision and retry. A better solution would be to make the application reentrant. Reentrant applications allow multiple invocations to process without adverse effect. A work request pool and queue of work space would be necessary.