How to Stop just One Thread and leave other theads running?

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
Sometimes one thread running a template may get off track or due to something thrown up by the page. However if you have many threads working and they've been at it for a while, it is not practical to stop everything for the one thread that went bad.

How can we isolate, pause or stop one thread while leaving the others to continue running?
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
You may decrease count of threads on 1 or interrupt/stop all of threads.
 

Aronax

Client
Регистрация
29.01.2015
Сообщения
201
Благодарностей
59
Баллы
28
I know this is a 10 year old thread, but do we have any new solution for this problem?

I have a template which runs on multiple threads and sometimes I need to stop one of the threads which takes too long to execute (due to slow proxy for example) and start a new thread. The thing is that I start this template with a .bat file and stopping the problematic thread with a .bat file would also stop the other threads that work ok.
 

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