Fork-join_none not working

In reply to hk123:

Please use code tags. I have added them for you.

You will need to provide more context regarding your issue. Does the code not compile? Does it not function as you expect it to? What do you expect the results to be?

One significant issue is that you have an infinite loop. A join_none statement is non-blocking, hence your do loop will run forever since i is never decremented.