08-30-2007 02:27 AM
08-30-2007 10:57 AM - edited 08-30-2007 10:57 AM
Have you thought about using the Batch model instead of the parallel model? The batch model will do exactly what you are looking for. You would put your head extraction code in cleanup and mark is as single execution so only one thread runs the extraction.
Other than that, use a rendezvous. The only problem with that is you will have to know how many positions are running when you create the rendezvous. All in all, I would use the batch model.
Message Edited by bretzlaff on 08-30-2007 11:03 AM