Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-05-2008, 07:30 AM
Member
 
Join Date: Jan 2008
Posts: 15
banie is on a distinguished road
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?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java threading Eranga Advanced Java 2 03-13-2008 06:30 AM
Prob with an exercise jhetfield18 New To Java 4 02-15-2008 07:11 PM
having prob with Exception eva New To Java 1 01-04-2008 06:44 PM
Explanation bout threading and concurrency? cruxblack New To Java 1 08-10-2007 11:33 AM
question about Multi threading in Java fred Advanced Java 1 07-24-2007 02:55 AM


All times are GMT +3. The time now is 10:26 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org