Synchronize Problem with multithread

cashlo

Client
Регистрация
14.02.2011
Сообщения
7
Благодарностей
0
Баллы
0
I am trying to login with a list of accounts, are there any simple way to avoid two thread to login to the same account and release the account to other thread when a thread die?
BTW, where can I ind some good source of proxy :p?
Thanks!
 

dongle132

Client
Регистрация
22.01.2011
Сообщения
35
Благодарностей
0
Баллы
0
To avoid two threads with the same login data you need to remove the string/line with the login info from your textfile.

{-File.GetString-|-\Resources\-|-random-|-true-}

For proxies you can contact/PM me but it depends for what you need the proxies else then posting with ZP.
 

kandor

Client
Регистрация
30.01.2011
Сообщения
29
Благодарностей
0
Баллы
0
How do you handle this if you need to use the same info from the line several times in one thread?
I have use global deposit to set a key with this value and then use the key several times.
But it makes multi-threading not possible as the next thread will write to the same key and mess things up.
And if I would try to read the same line several times it would simply be next line on each run.

Any suggestion on how to multi-thread this kind of things?

Best,
Kandor
 

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