I have 3 threads 1st printing A 2nd printing B 3rd printing C
I want to print in sequence A B C A B C A B C and so on.....
So I wrote the program below, but
Replace:
if(notifyAllExample.status!=1){ notifyAllExample.wait(); }
with:
while(notifyAllExample.status!=1){ notifyAllExample.wait(); }
in all classes accordingly.