0
boolean isavail=false;
new Thread(){
	public void run() 
          {				
.
.
.
				
		isavail=fun();
.
.
.

          }
}.start();

I need that value assigned in the run() method ..... But eventhough the function returns "true", the value being present in that variable after the thread is
"false" only......

How to get that value????????

I am very new to threads and all, so i need a little bit of help plz....... :)

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Nicris
0

Sorry ....... I realized my mistake...... i acccessed the value even before the thread was finished ...... that was my mistake thank u ..... :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.