I have a requirement for the main process to invoke a subprocess n times. When all subprocesses are complete the main process resumes.
I was thinking of using a server event to start the processes (based on a user entered number) and then have each subprocess update a counter. The main process would then restart when the counter reached the number of subprocesses started.
Is this OK? Do I have to worry about locking the counter on update? Do I have to worry about the main process polling the counter continuously?