Multi Threaded Server

So the server has been giving me trouble, the players weren't created quick enough so the server thought it had 3 different players connecting but really it was only one player, but anyway after further study I found that if I make the threads wait for the player to be created and then resume, or resume after a time, the server would work correctly.

Moral of the story is use wait and notify on the threads because it really helps!


Published at

Tags: Icarus Galaxy,Server

Luke Alderton

Comments

Post a comment
Sit tight...
We're adding your comment.
Thank you.
Your comment has been added.
There's been a problem.
Please try again later.
Share with
Tags
Latest Comments
By Mark Gentry on Windows Server 2019 - Change product key does nothing
20 Aug 2021, 03:30 AM
By Cathy on In-Place Upgrade for a Windows Server domain controller
31 Jul 2021, 18:28 PM
By Small pp on How to add a Xamarin Forms Loading Screen/Overlay
22 Mar 2021, 12:04 PM
By Mr. Greymatter on Raspberry Pi - Running Java app on Raspbian
16 Feb 2021, 07:35 AM
By Mikko Seittenranta on Xamarin Forms multiple instances of same app open
16 Feb 2021, 04:34 AM
By Andrew on Auto/Custom height on Xamarin Forms WebView for Android and iOS
22 Jan 2021, 22:15 PM
By Rrrft on JQuery Unobtrusive Validation for dynamically created elements
5 Dec 2020, 09:18 AM
By Nick on Raspberry Pi - Running Java app on Raspbian
14 Oct 2020, 19:37 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development