Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] How to get the value from a field in a child thread

Anders Viklund

2010-03-15

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

How can I get the value from a field in a child thread?


Thread t = new Thread(new RunnableObject())

t.start()

//how to get the value from child thread before it dies?
t.join()



class RunnableObject implements Runnable{

public String comeAndGetMe

public void run(){
    comeAndGetMe ="how to get this text from parent thread?"
}

}


Hotmail: Free, trusted and rich email service. Get it now.
©2008 gg3721.com - Jax Systems, LLC, U.S.A.