Follow-up Comment #1, patch #1846 (project freeciv): Using threads in the server would make the server a lot more scalable, so this would be a good improvement. I think that having even more granularity in the server could be investigated, looking for more tasks that could be run in separate threads.
Would it be possible to have one thread for every player or connection? Further, would it be possible to run pathfinding in a separate thread? Of course, locks would have to be used when accessing shared data, such as the map. I really think that having a multithreaded server would be a good improvement for Freeciv, also for my project on http://www.freeciv.net/ where I think running longturn games with large maps and many players would benefit from a threaded server. _______________________________________________________ Reply to this item at: <http://gna.org/patch/?1846> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list [email protected] https://mail.gna.org/listinfo/freeciv-dev
