Last post Aug 19, 2010 12:19 PM by isaac_2004
Aug 18, 2010 12:58 PM|isaac_2004|LINK
I have a method that calls two subsequent methods that contain multiple parameters. I would like to run these methods simultaneously and then preform an action based on the return of both methods, so The parent thread cannot continue until BOTH threads
have completed. I have tried going trough MSDN examples and haven't got anything to work (the issue is that the parent thread (aka the main method) continues on once one of the thread completes). I have tried cheking the state of threads and waiting the threads,
but have not gotten anywhere. Any help would be great. Thanks.
Aug 19, 2010 06:09 AM|DeadBurger|LINK
Call the Join-method for each thread you want to wait for. The Join-method will not be passsed before the thread is done.
Aug 19, 2010 12:19 PM|isaac_2004|LINK
I have tried Join, and the issue still persists, the parent thread continues on. I methods can take a variable amount of time to process, so I do not know if one needs to joined to the other