Multithreading
Options
Comments
-
Hi, there
until you are working in an one fiber everything is fine. you push tasks to it and the fiber makes sure that they are executed in strict order. they might be executed on different threads in a thread pool but they are executed one by one without concurrency.
if your code belongs to different fibers, then you need synchronize access, because actions in different fibers are executed concurrently1 -
you also may read this answer too
http://forum.photonengine.com/discussion/5535/protecting-my-application-from-race-conditions/p1#p210851 -
Thank you @chvetsov! This is what i looks for!0
-
And just to be sure.. In server logs i see lines like
2017-09-13 17:44:40,548 [20] INFO MyServer - Send tick
Is i correct when i guess that [20]- is thread id?0 -
yes.
to not guess check log4net.config
best,
ilya1 -
Ok, thank you again, ilya!0