Multi thread in DPI-C structure

In reply to uvmbee:

The variables ‘a’ and ‘b’ are assigned values when the task is called. These values will never change, hence it appears that your forever loop never executes.