multi thread best way ?

  • Автор темы Автор темы aleksa77
  • Дата начала Дата начала

aleksa77

Client
Регистрация
30.09.2011
Сообщения
914
Реакции
90
Баллы
28
How you solve multi thread and overlap data ?

I put one txt file/list and every itteration take number and increase and put new number in top of list.

But i have overlap often:

9e4cb1eaad0f35abaf0d5bf831d2f743.png
 
Please include your test template to understand how it's organized
 
You should use C# code and lock List if you want to combine take line + increase value + add to list and if you want for ther threads to wait until this group of actions will be executed.
 
  • Спасибо
Реакции: aleksa77

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)