This batch file demonstrates how to create a queue for sequential execution of batch files. The script appends each batch file to the queue as soon as it is executed, but waits with executing the main body of the script until it is its turn in the queue. The queue is managed by incrementing the number of jobs in the queue and adding each job to the list of jobs waiting. The script then waits for its turn in the queue and checks if the job in front is finished before starting this job. Once the checks are done, the code can be executed. The batch file also includes a simulated task that takes time to execute.
-
Notifications
You must be signed in to change notification settings - Fork 0
blvbak/Batch_queue
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
An example of how to make an ordered batch queue
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published