Display Legacy Contents


A multithread application is an application that has several simultaneous routines being executed.

In Kalipso this can be implemented through Action Sets, either by calling them directly with “Execute Action Set” with parameter “Thread Mode” set to ‘Yes’ or by “Start Timer” also with parameter “Thread Mode” set to ‘Yes’.

When the Action Set is being executed the application continues to run without having to wait for it to end. Use multithread with extreme caution. It requires you to understand the implications and consequences of using them. For example if you execute an Action Set that uses a Variable and simultaneously the application uses that same Variable the outcome is unpredictable unless you know exactly what you are doing. You can use “Critical Sections” in Kalipso to help manage this interaction between the different threads in your Project.

Critical Sections
A critical section is a part of your application that you don’t want to be executed simultaneously by other threads. When you call “
Critical Section Enter” the call only returns if there is no other Thread inside the same critical section. After the call returns, no other thread can enter the same critical section until a call to “Critical Section Leave” is made by the current thread.

See also
Updated: 11/5/2014 5:25 PM