Variables and Multi-thread

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

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
 
Do you take URLs from list?
 
Yes. That is what I am doing. Thank you
 
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.
 
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.
 
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.
 
Thank you very much for your help. I really appreciate it.
 

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