Write code to execute task A in parallel 10 times, and call task B only after task A has finished executing 10 times

In reply to rag123:

Hi Rag, can you explain the purpose of the #0 after the join_none? If its present, I see the task correctly printing values 0 to 9, but without that I see the value being 10 always. Can you please explain what the #0 is doing?