Click here to Skip to main content
15,902,492 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am writing a code for distributed Traveling Tournament Problem Solution.
I have:
1.Multithreaded server which allocates chromosomes to the clients
2.Clients are required to completed the job and return the data to the server.
3. The server thread is supposed to wait for the data to be collected from various clients, and then resume it's execution, calculate the result and then terminate.

My problem:
I used join and synchronize but no help. I am looking something like worker threads

I hope you get my problem as I am a newbie.
Posted
Comments
James Schuldiner 26-Apr-11 11:02am    
Could you, perhaps, be a bit more specific about the nature of the problem? (simple step by step layout of the algorithm, pseudo-code or actual code would help a lot)
At the same time, could you specify, exactly, how you've used 'join' and 'synchronize' in hopes of making the application functional?

1 solution

Firstly, go through this[^] as it covers most of what you are interested in.

Instead of using join, try a wait and notify structure.

FYI, if you'd posted an attempt, you'd have got more help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900