hi all,
i have a problem:-
I have four
thread each printing messages on to the printer and i want to run them in a particular sequence ie
my four threads are :- hello , world ,welcome and Mythread and i want them to be executed in the same order .
I tried using wait notifyAll in my program , but all i can control is printing the hello and am unable to print world , welcome and Mythread in the respective sequence . can anyone explain whether it is possible to do what i desire to .
My code is as follows:-