Because I will personally delete your entire source. <3
I wasn't going to do that anyways, it sounds **** IMO. Just want to know if I should assign a thread for the maps in use by players or just one global, but it's just it sounds like the global one will make delays, because it will handle one player and then another player after, where a thread for the single maps would be faster, instead it loop through maybe 500 players, then only 50 or 100 etc. I'm a bit clueless at this, but want whatever that's best.
You need to think about this in terms of function rather then collections.
You say threads to deal with players but deal with WHAT exactly?
Stamina/xp bar? Auto attack? etc.
I'd have threads for each FUNCTION personally but that's just me and then make sure my player collection was going to be threadsafe to make sure it works properly (IE: ConcurrentDictionary).
As for packet handling I'd use a threadpool to deal with that and then a few threads to deal with basic server actions.
Multi Threading 08/18/2011 - CO2 Private Server - 6 Replies I know it's not Conquer related like that, but Multi Threading is a very big part, when developing Conquer PServers.
Source: Managed Threading Best Practices
Socket/Threading Question 07/31/2011 - CO2 Programming - 3 Replies Alright so I've been following InfamousNoone's C# for idiots tutorial (video set) and I've just finished watching them all. I can now say I'm very very interested in sockets and whatnot. So the problem is, I'm trying to use sockets to creating a mini Messaging client and I've gotten to the point where I can send a message back in forth. But this is how it works.
The ONLY way you can send a message is if you receive one first. That's obviously a problem! I've tried to start multiple threads...
[C++] Problem with threading 05/17/2009 - CO2 Programming - 2 Replies Actually the problem is more like with passing a function as pointer to the CreateThread or _beginthreadex,
BOOL Connect()
{
if(m_Enabled != TRUE)
return FALSE;
sockaddr_in addr;
addr.sin_family = AF_INET;
[C#] Cross-Threading ? 10/14/2008 - .NET Languages - 7 Replies Hello,
Is there a flag or whatever that lets me use crossthreading freely? Without the help of a Workerthread. Whenever I try to change a variable it doesn't let me because Crossthreading isn't safe (eg. accessing the variables from other threads), but It's also hard to find a solution for this.
I'm starting another thread that contains a function to download the source code of another page and process the wanted information into variables, however I cannot do that with a thread. The only...