I have written a code which has 2 parts to it. The first one is a daemon thread that always monitors a data line for data exchange. The second thread is the one which filters the captured data according to certain set conditions.
I have this code as a module in another. This super set code sends out a list of parameter (the condition of filters) to the module I have written. I wanted to know is there any method by which I can create a new thread by passing these parameters while the program is running?
Thank you
You absolutely should have a look at:
multiprocessing
This will give you the possibility to handle any kind of you threading need.