Variables and Multi-thread

tinear10

Client
Регистрация
03.01.2012
Сообщения
14
Благодарностей
1
Баллы
1
I apologize if this question has already tried searching the forum. I am trying to get my template to work with multiple threads. How do I prevent new threads from setting my initial variable count back to zero? I would like each thread ti increment the variable so the threads are not visiting the same website.

Thank you,
Matt
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Do you take URLs from list?
 

tinear10

Client
Регистрация
03.01.2012
Сообщения
14
Благодарностей
1
Баллы
1
Yes. That is what I am doing. Thank you
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Try not to take line by number of counter. But instead of that just take line with deleting. And each thread will use different line.
 

tinear10

Client
Регистрация
03.01.2012
Сообщения
14
Благодарностей
1
Баллы
1
Thank you very much.

I have another template I am trying to build. I want the template to go through 50,000 URLS. Each Url increments buy one. I tried to set a global variable to zero and then increment the variable. This works fine for one thread but I can not do multiple threads. Any suggestions would be greatly appreciated.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Global variable should be initiate by 1 template and should be used by another. If you have global variable in list of variables in your template, each start of template will loose current value of it.

Again: for your task I would take lines with deleting.
 

tinear10

Client
Регистрация
03.01.2012
Сообщения
14
Благодарностей
1
Баллы
1
Thank you very much for your help. I really appreciate it.
 

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