[Solved] I am trying to print numbers from 1 to 10 in sequential order with two different threads, but output is not always same [closed]

[ad_1]

I am trying to print numbers from 1 to 10 in sequential order with two different threads, but output is not always same [closed]

[ad_2]

solved I am trying to print numbers from 1 to 10 in sequential order with two different threads, but output is not always same [closed]