Fork-join dilema

In reply to jyotsna:

The problem is when both blocking condition events occur in the same time step. If you can guarantee that will never happen, there is no problem with assigning to the same variable from two different threads.