Hi,
THe output Iam getting now is
Thread Name is = Thread M1 m1
Thread Name is =Thread M1 m2
Thread Name is =Thread M1 m3
Thread Name is = Thread M2 m1
Thread Name is =Thread M2 m2
Thread Name is =Thread M2 m3
Thread Name is = Thread M3 m1
Thread Name is =Thread M3 m2
Thread Name is =Thread M3 m3
However, I want thread2 to print m1 after thread 1 prints m1, and thread 3 to print m1 after thread 2.
I mean, the desired output is
m1 (code run by thread 1)
m1 (code run by thread 2)
m1 (code run by thread 3)
m2 (code run by thread 1)
m2 (code run by thread 2)
m2 (code run by thread 3)
m3 (code run by thread 1)
m3 (code run by thread 2)
m3 (code run by thread 3)
Thanks
Faisal