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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. a question about two CPU...

a question about two CPU...

Scheduled Pinned Locked Moved C / C++ / MFC
questionsysadminhelp
4 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
    liuty2006
    wrote on last edited by
    #1

    I write a programe(with VC6).It run correctly at computer with ONE cpu(Win2000 server).But It can not run with TWO CPUs . For my develop envirment is ONE cpu,so I can not locate the error correctly. can you tell me the possible reason. How can i locate the error? thanks in advance. liuty

    C 1 Reply Last reply
    0
    • L liuty2006

      I write a programe(with VC6).It run correctly at computer with ONE cpu(Win2000 server).But It can not run with TWO CPUs . For my develop envirment is ONE cpu,so I can not locate the error correctly. can you tell me the possible reason. How can i locate the error? thanks in advance. liuty

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Are you using threads ? I'd imagine that would be a likely error source, not being threadsafe. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002

      L 1 Reply Last reply
      0
      • C Christian Graus

        Are you using threads ? I'd imagine that would be a likely error source, not being threadsafe. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002

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

        yes!I use threads. How to do with "being threadsafe". what I would pay special attention to, when i write programe?

        C 1 Reply Last reply
        0
        • L liuty2006

          yes!I use threads. How to do with "being threadsafe". what I would pay special attention to, when i write programe?

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          liuty2006 wrote: what I would pay special attention to, when i write programe? Any data that is written by more than one thread should be wrapped in a critical section, or similar, to ensure atomic access. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002

          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