Using fork join_none to span threads in a for loop in parallel, which is executed in forever loop

In reply to VarshaAnand2402:

yes, that’s because it had only one thread waiting for value 5.will think through it.