Multi threading in gpu

I have 3 functions in which threads are running contineously , by default I loaded the 3 YOLO models and declared as global , and in each function I am using one yolo models I am predicting the image contineously like this I am doing for 3 threads, the code is working fine for 2 threads, when i create 3 threads I am not getting any output some times the cursor is blinking contineously what is the reason for this and how to overcome this issue I am using nvidia rtx A5000 GPU with 24GB RAM , and when I run the same code on another GPU the code is working fine ?

This is GROMACS forum, you may need to ask this somewhere else to get a solution.