Jump to content
Sign in to follow this  
morsony

Run fixed number of processes, and start a new process when one closes

Recommended Posts

morsony

Hi

I've searched the forum, but without much luck. I wish to have a script, that starts 10 backup processes, and then watches those and as soon as 1 closes a new one is started. I have about 80 processes I wish to schedule using this method. Could this be done?

Right now I use ProcessWaitClose, and checks for the last process to close, and the starts 10 new ones. This is just a bit of a waste time and performance wise.

Thanks

Sebastian

Share this post


Link to post
Share on other sites
Skruge

Welcome to the forums.

There are plenty of ways to accomplish this, especially if you wrote the backup processes.

Try counting the backup processes with ProcessList and launch a new one whenever it drops below 10.


[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×