Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Pages: 1
Hello World!
I would like to ask if is there a way for making a multithreadding performance to my bot. Like, the bot is working, but it just do 1 action per step for each player. I would like to do all actions simuntaneously. Thanks
Offline
So many ways to do it in .NET
But I suggest you to don't make 30 threads... Try rethink your algorithm.
If you're looking to a specific amount of time between checks the best option is Timers( e.g. of an implement http://stackoverflow.com/questions/1253 … nt-a-timer ).
Else you may also want to take a look on Tasks https://msdn.microsoft.com/en-us/librar … .110).aspx
Everybody edits, but some edit more than others
Offline
Be careful not to go too deep into Stack Overflow looking for the perfect multithreading - it quickly becomes a bit of a nightmare if you're trying to synchronise data across threads, or want to stop one after it's started.
You can only multithread across as many threads as your CPU has cores (don't quote me) - otherwise it just really quickly switches between threads. Try using the thread pool.
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
Pages: 1
[ Started around 1732370189.6788 - Generated in 0.028 seconds, 15 queries executed - Memory usage: 1.39 MiB (Peak: 1.49 MiB) ]