Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Multitheading

Multitheading

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Waldermort
    wrote on last edited by
    #1

    Just a quick question. When the exe is built as Multithreaded, should the dll's also be multithreaded or does it not matter?

    V T S 3 Replies Last reply
    0
    • W Waldermort

      Just a quick question. When the exe is built as Multithreaded, should the dll's also be multithreaded or does it not matter?

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      all modules should be in parallel Kuphryn

      1 Reply Last reply
      0
      • W Waldermort

        Just a quick question. When the exe is built as Multithreaded, should the dll's also be multithreaded or does it not matter?

        T Offline
        T Offline
        Tim Smith
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • W Waldermort

          Just a quick question. When the exe is built as Multithreaded, should the dll's also be multithreaded or does it not matter?

          S Offline
          S Offline
          Stephen Hewitt
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups