There is some good info on that here Managing multiple asynchronous threads - Ignition - Inductive Automation Forum