Link to home
Start Free TrialLog in
Avatar of James Hancock
James HancockFlag for United States of America

asked on

Java - are methods called from within a Thread threaded?

Hi
Chess project...planning...

From within my main Thread's run() method game-loop, I need to call a method from another class, but I don't want that method to be a  hazard - causing a wait.
Will that function call be included in the calling class's Threading ? I have a main class with a Thread that waits for a move from each player, be they human or AI. It will wait for a white move, then black move . . loop

Does a Threaded loop add all workflow called from the run() of the Thread to the Threading?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of CPColin
CPColin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of James Hancock

ASKER

Thanks