Home > Back-end >  Is DLL function called from multithreaded application run on same thread?
Is DLL function called from multithreaded application run on same thread?

Time:10-16

I have multithreaded application. Now, I have written one function in Windows DLL. I am calling this DLL function from thread function (called by multiple threads) which is in my application. So, my question is, does this DLL function also executes on same calling thread? (And no need to handle multithreading separately in DLL)

CodePudding user response:

Yes, the DLL function will execute on the same thread as the caller. There is no need to handle multithreading separately in the DLL.

  • Related