I've been asked to edit the code in this post http://www.daniweb.com/software-development/java/threads/455560/java-recursion-brute-force-sim so that it "Runs the function as a thread which wouldn’t then hang the program whilst it’s waiting for the result". I've looked it up, but I'm struggling to apply it to this program, any tips?
poopuh 0
Light Poster
Recommended Answers
Jump to PostYou have two parts to this task.
The second part is to create and start a new Thread to execute your code, but that requires a run() method (see the Thread API doc for examples etc).
So, the first part is to extract the relevant code from its current place …
All 10 Replies
JamesCherrill 4,733
Most Valuable Poster Team Colleague Featured Poster
poopuh 0
Light Poster
JamesCherrill 4,733
Most Valuable Poster Team Colleague Featured Poster
poopuh 0
Light Poster
stultuske 1,116
Posting Maven Featured Poster
JamesCherrill 4,733
Most Valuable Poster Team Colleague Featured Poster
poopuh 0
Light Poster
JamesCherrill 4,733
Most Valuable Poster Team Colleague Featured Poster
poopuh 0
Light Poster
JamesCherrill 4,733
Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.