|
Threading prob..
hello all
i'm using java 1.5
i have two search functions that should return a result or not
searchInDirectory(".", "root@aol.com");
searchInDatabase("root@aol.com");
this is my logic
start function
spawn new thread that calls searchInDirectory
spawn new thread that calls searchInDatabase
wait for the first one to return the result
return the result
end function
i've read the docs
i just need an example
anybody can point me to an example page?
|