i have multithread communication. 1 Thread is dispatching datas to other threads.
Main thread is pushing data:
Main Thread: ConcurrentHashMap map = Glob
First, call wait() on Thread 1 right before it gets a value from the Map. You could then extend ConcurrentHashMap and override the put() method to notify() Thread 1 when new data is available.
wait()
put()
notify()