Hello How do u return data from a running thread? run() method returns void, so you cannot return your data through it. Any thought would be appreciated Thanks
If you make your own subclass of Thread (let's call it MyThread), you can put whatever data you want in the MyThread object. Then, after you join the thread, look at that data.
Hi Fadi, it seems that I didn't get your question right. Here's another try: You may want to read the first draft of my essay on exactly this question at http://www.mhoehme.de/java/threads.html. Any comments are welcome! [ November 04, 2002: Message edited by: Mag Hoehme ]
Mag
If you like strawberry rhubarb pie, try blueberry rhubarb (bluebarb) pie. And try this tiny ad: