Multitheading
-
Just a quick question. When the exe is built as Multithreaded, should the dll's also be multithreaded or does it not matter?
-
Just a quick question. When the exe is built as Multithreaded, should the dll's also be multithreaded or does it not matter?
-
Just a quick question. When the exe is built as Multithreaded, should the dll's also be multithreaded or does it not matter?
Yes, they should be. For such things as the C-Runtime library (the library that contains the implementation for things such as fopen and errno), there are slight differences in how some things are done. For example, in a single threaded CRTL DLL, memory management probably isn't locked so two threads don't try to allocate memory at the same time (due to the threads sharing the same core memory allocation tables). Even simple things such as errno and strtok are implemented differently in a single threaded CRTL.
Tim Smith I'm going to patent thought. I have yet to see any prior art.
-
Just a quick question. When the exe is built as Multithreaded, should the dll's also be multithreaded or does it not matter?
It depends. If you’re not sure just make all of them multithreaded. If the main .EXE is multithreaded but only makes calls to a DLL using one of these threads and the DLL is single threaded itself then it need not be compiled with the multithreaded libraries.
Steve