摘要 |
<p>An AS/400 computer is provided with a threaded environment by using thread related batch jobs (22, 25, 26) to accept thread tasks and individually apply them to specialized batch jobs (16, 18) that perform the tasks. Return data is applied by the thread related batch jobs (22, 25, 26) to a common queue (20) and the using application (14) is caused to wait on the common queue (20), thereby overcoming the AS/400 limitation that an application can only wait on one queue at a time. The thread tasks are thereby performed asynchronously while the user application effectively waits on all such thread tasks by waiting on the common queue (20). The threaded environment maintains a pool of active thread related batch jobs and permits the cloning of new thread related batch jobs from existing thread related batch jobs to efficiently manage the thread pool.</p> |