Results 1 to 1 of 1
Thread: Threading prob..
- 02-05-2008, 06:30 AM #1
Member
- Join Date
- Jan 2008
- Posts
- 21
- Rep Power
- 0
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?
Similar Threads
-
Java threading
By Eranga in forum Advanced JavaReplies: 2Last Post: 03-13-2008, 05:30 AM -
Prob with an exercise
By jhetfield18 in forum New To JavaReplies: 4Last Post: 02-15-2008, 06:11 PM -
having prob with Exception
By eva in forum New To JavaReplies: 1Last Post: 01-04-2008, 05:44 PM -
Explanation bout threading and concurrency?
By cruxblack in forum New To JavaReplies: 1Last Post: 08-10-2007, 10:33 AM -
question about Multi threading in Java
By fred in forum Advanced JavaReplies: 1Last Post: 07-24-2007, 01:55 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks