Multi thread table processing - Make sure multiple threads don't process the same rows?

V Munich

Пользователь
Регистрация
20.02.2014
Сообщения
85
Благодарностей
3
Баллы
8
Hello,

I have an excel file with multiple social media accounts. My template grabs the accounts from this excel file, logs in on the accounts and updates some information.

That works with 1 thread, but it's slow.

When using multiple threads, how can I ensure that no thread work on the same account?

So basically I don't want the same account being processed by 2 or more threads, as it would cause me problems.

What's a way to prevent that from happening?

Thanks.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
1) Copy file with your accounts to new temp place via File action
2) Bind it to table/list via action
3) Take lines with deleting
 

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