a question about two CPU...
-
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
-
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
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
-
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
-
yes!I use threads. How to do with "being threadsafe". what I would pay special attention to, when i write programe?
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