I have an application that is running in 10 threads. Each thread is calling the same functions and procedures. I seem to have an issue where some threads might get duplicate results and they should not. I would think the function would only return the value to the thread that called it, but looking at my results this is not always the case. Can this happen if 2 threads call a function at the same time? Is there a way to fix this?