How to control execution of multiple threads
Posted: Sun Sep 03, 2006 11:21 pm
While multiple threads are executing the same instance of map, in TX eventserver, is there any way to control the relative execution of these threasds....example below.
Thread1 is running a Credit transaction.
Thread2 is running a Debit transaction.
i want to make sure that the Credit transaction gets processed first and then the debit transaction should be processed. Is there any way to STOP, WAIT, SLEEP the running threads.
Thread1 is running a Credit transaction.
Thread2 is running a Debit transaction.
i want to make sure that the Credit transaction gets processed first and then the debit transaction should be processed. Is there any way to STOP, WAIT, SLEEP the running threads.