multiple thread,you have a lot of ways to protect your data,such as lock statement.I assume you talk about C#.