I have a thread. first I start it, then it executes the run() method automatically. this thread reads data from a linked list. if the list is empty then I use wait() to block the thread. when I insert an item to the list I use notify() to let waited threads to run. but my problem is that:
1. I want to run this thread continuously
2. I want to thread executes from any where that it waited. I mean from any line of code that wait stops it from executing.
please help me how can I use java threading methods to run my threads continuously?
with all my thanks: Saeid