Resume simulation when any 2 threads out of 3 get completed within fork-join_any

In reply to dave_59:

Hi Dave ,

Could it possible using Fine-Grain Process Control ? . Particularly " await " and
" process.status != FINISHED "

Also your suggestion regarding counters being " thread unsafe" is Certainly Crucial .
What I am curious to know is what could be the counter be incremented to ( if not by 2 ) .
Since its a blocking statement although there would be no atomic guarantee , wouldn’t the 2nd Incremental Statement always see the Updated Value ( i.e incremented by 1 ) ?

Not arguing , just curious to know

Thanks ,

AGIS