What happens to python thread object, when the status of that object reached closed state?

49 views Asked by At

I am working on a python multithreading project. The intent of the app/Project/Daemon was to do a process continuously for 24/7 with difference parameters are input. Multiple threads are created and at every instance. Each thread will trigger a python grequests async process

My question's:

  1. Even thought the thread reaches close state, still the process of the particular PID's are available in the linux process management list.

  2. In this case, what should i do to?

  3. Whether these process do any malfunctions for my program.

Can any one please give me an idea regarding how i should progress?

1

There are 1 answers

3
xennygrimmato On

You need to terminate the process created in the thread, before the thread is destroyed.

If the number of processes keeps on increasing, you may not have any memory left to create further new processes.