Tasks question

Hi, I am trying to program a server-client application, I have one doubt, I created a task that manages monsters (position, buffs, etc). Every one second it reduces the buff timers, and check if a monster should move around (this is a method that is executed for everyone in a monster list).
My question is: how are tasks handled? Are they threads or they will be executed until the end? Do I need to worry with sync problems (since more than one task access the monster list)?

If the tasks are added to the same task chain, they will run in sequence. So you don’t need to worry about race conditions.

Ok, thanks.