Hi,
We have a multi-threading TensorRT example for C++ here:
I will check your python sample and update more information with you later. In general, you will need to create different context for the TensorRT to isolate the working environment.
Thanks.