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. Problem with DLL running in parallel

Problem with DLL running in parallel

Scheduled Pinned Locked Moved C / C++ / MFC
databaseasp-netsysadminwindows-admintesting
3 Posts 2 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.
  • L Offline
    L Offline
    Llasus
    wrote on last edited by
    #1

    Hello, I have an exe which launches a DLL inside a thread (using CreateInstance) that does some SQL process (retreive, update of data, etc.). Then this exe is launched by some trigger event which is asynchronous. Now testing this on my environment (Windows XP Service Pack 3, Core 2 DUO @2.33GHz, 2GB of RAM) by triggering the event 2x simultaneously absolutely works. I can see in the log files I've created that the 2 DLL instance are processing in parallel. The problem is with another server environment that we have (Windows Server 2003 R2 Service Pack 2, Xeon CPU @2.5GHz, 3GB of RAM). When I check the log files, up to the actual launch of the DLL was done simultaneously. But when it came to the DLLs, they seem to be working sequentially. After the 1st DLL is done (which is after 10 mins), then that is the time that the 2nd DLL starts in processing... Anyone has any idea/clue on this problem? I'm on a dead-end right now. Thanks!

    G 1 Reply Last reply
    0
    • L Llasus

      Hello, I have an exe which launches a DLL inside a thread (using CreateInstance) that does some SQL process (retreive, update of data, etc.). Then this exe is launched by some trigger event which is asynchronous. Now testing this on my environment (Windows XP Service Pack 3, Core 2 DUO @2.33GHz, 2GB of RAM) by triggering the event 2x simultaneously absolutely works. I can see in the log files I've created that the 2 DLL instance are processing in parallel. The problem is with another server environment that we have (Windows Server 2003 R2 Service Pack 2, Xeon CPU @2.5GHz, 3GB of RAM). When I check the log files, up to the actual launch of the DLL was done simultaneously. But when it came to the DLLs, they seem to be working sequentially. After the 1st DLL is done (which is after 10 mins), then that is the time that the 2nd DLL starts in processing... Anyone has any idea/clue on this problem? I'm on a dead-end right now. Thanks!

      G Offline
      G Offline
      Graham Breach
      wrote on last edited by
      #2

      Could the two processes be queueing up to use the same resource? Maybe you only have one SQL connection available on the Server machine.

      L 1 Reply Last reply
      0
      • G Graham Breach

        Could the two processes be queueing up to use the same resource? Maybe you only have one SQL connection available on the Server machine.

        L Offline
        L Offline
        Llasus
        wrote on last edited by
        #3

        I have checked the SQL connection and the setting was 6. Then looking at the log files, the actual queuing up happens when the DLL's first function is called (way after the SQL connection/process is being triggered). The other DLL stops/waits until the first DLL is done. It is highly likely that they're using the same resource... but any possibility that this is somehow the DLL's loading being queued up?

        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