Best Practice for Multithread Where One Account in Each Thread?

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

Cyrix

Client
Регистрация
16.12.2011
Сообщения
401
Реакции
12
Баллы
18
I want to design a project where many accounts post at the same time, each in its own thread.

Is there a way to return the thread number in ZP, so that I can link account 1 to thread 1, account 2 to thread 2 and so on?
(i e. thread 1 always logs in with account 1 and thread 2 always logs in account 2 an so on?)

Is this a good way to do simultaneous multi-account projects in ZP? Or is there a better way?

Thanks.
 
Последнее редактирование:
What I am doing is that I am posting comments on a forum under many accounts.
I want all accounts running at the same time, each has its own proxy.

Your method is good, but we have frequent power outage in our area.
When ZP quits unexpectally, wouldn't your method lead to lost of all account information in that txt file?

I am thinking about a solution: Can we make a small project to first backup the txt file to anther file, then call the main project within that small project (is this even possible, or is there a better way)?
 
Can a project initiate another project?
I want the project your suggest to be a master project and open all others within it.
 
Can a project initiate another project?
I want the project your suggest to be a master project and open all others within it.


Yes if you want that one project starts another then you can use Task Manager what is in zennoposter or other way you can use C# for that, and also some bat files...
 
  • Спасибо
Реакции: Cyrix
take account delete from file and when thread is finished add account back

There might be a problem with this method:

Say I have 18 accounts on that day to run 500 executions. If I have maximum threads set at 20, then there will be 2 threads constantly failing the "take account" action, and use up the 500 execution numbers quickly and leave a full screen log of error messages.

Beside always manually setting the max thread number to the exact number of accounts (this is inconvenient). What's the best way to solve this problem?

Thanks.
 
How you expect it to be more convenient if you set to run more threads than you have accounts?
 
Because that account file is always changing by another program.
Can you think of a way to make the maximum thread number able to adjust to the count of accounts in that file?

Thank you very much.


Man everything is possible to do, but I kindly ask you before you ask for help make sure you use search in forum and spend some time to test and make it to work yourself.

Some users spend a day or so before asking for help, but you spend day for asking questions.
just do it different and you will succeed...

Cheers
 

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