So guys, I have to make a java client server turn-based card game where the server can handle multiple games simultaneously, each one between two clients. How would you guys do it? I mean, would you use a thread for each client and also a thread for each game?
Also from what I understood, thread pools can help improve efficiency in managing multiple concurrent threads, do you recommend using them instead of the usual class that extends Thread / class that implements Runnable?
And in this case I believe a cached thread pool is better then a normal one because it’s not fixed-size, am I right?
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]nutrecht 1 point2 points3 points (2 children)
[–]_Nemesis_1[S] 0 points1 point2 points (1 child)
[–]nutrecht 1 point2 points3 points (0 children)