I have two AsyncTasks running; let's say A1 and A2. A2 is manipulating the data produced by A1 (in fact this is a typical producer-consumer scenario). It's very tempting to use wait() inside doInBackground() implementation of A2, BUT this causes an IllegalMonitorStateException. Is it really not possible to "wait()" inside an AsyncTask? What to do when you have an AsyncTask which needs to wait for something?
Thank you in advance,