keyongtech


  keyongtech > dotnet.framework.* > dotnet.framework.main > 09/2006

 #1  
09-19-06, 09:06 PM
costasz
I am using the code from this MSDN article

http://msdn2.microsoft.com/en-us/library/bz33kx67.aspx

Everything worked great on my single core CPU laptop. I then tried to
run the .exe on my Dual core Pentium-D at work. The UI becomes
unresponsive while the background thread is running. When I go into
task manager and change the CPU affinity from 0,1 to just 0, the UI
becomes responsive again. Please keep in mind that made the loop longer
so that I have time to observe the blocking. Anyone have any ideas?

Thanks

CZ
 #2  
09-19-06, 10:27 PM
Sean Chambers
What does the memory consumption look like on the dual core box. You
said you made the loop longer to observe the blocking. Perhaps it's
working so quickly that it chews all your memory up?

Just throwing ideas out there.

I made a multi-threading async app on a dual core box with no problems.
The child threads would update a listbox with updates as they complete
certain tasks in text files. worked like a charm. thats why this is
kind of weird.

costasz wrote:
[..]
 #3  
09-20-06, 09:48 PM
costasz
I had to put a Thread.Sleep(1) inside the Background Thread's loop.
Everything worked then.

Thanks


Sean Chambers wrote:
[..]
 #4  
09-23-06, 09:02 PM
Willy Denoyette [MVP]
Please post a complete sample that illustrates the issue, there must be
something wrong with your code.

Willy.

<costasz> wrote in message
news:5780
|I had to put a Thread.Sleep(1) inside the Background Thread's loop.
| Everything worked then.
|
| Thanks
|
|
| Sean Chambers wrote:
| > What does the memory consumption look like on the dual core box. You
| > said you made the loop longer to observe the blocking. Perhaps it's
| > working so quickly that it chews all your memory up?
| >
| > Just throwing ideas out there.
| >
| > I made a multi-threading async app on a dual core box with no problems.
| > The child threads would update a listbox with updates as they complete
| > certain tasks in text files. worked like a charm. thats why this is
| > kind of weird.
| >
| > costasz wrote:
| > > I am using the code from this MSDN article
| > >
| > > http://msdn2.microsoft.com/en-us/library/bz33kx67.aspx
| > >
| > > Everything worked great on my single core CPU laptop. I then tried to
| > > run the .exe on my Dual core Pentium-D at work. The UI becomes
| > > unresponsive while the background thread is running. When I go into
| > > task manager and change the CPU affinity from 0,1 to just 0, the UI
| > > becomes responsive again. Please keep in mind that made the loop
longer
| > > so that I have time to observe the blocking. Anyone have any ideas?
| > >
| > > Thanks
| > >
| > > CZ
|
Similar Threads
run a process (all threads) in single core in a dual core system

Hi, Is there any way to make the windows xp scheduler to schedule all the threads in my process to run only on one processor in a dual core system? regards Mohan

Force Application to use single core on dual core machine

Hi, I once used a command (via command prompt) that forced an application to use a single core only (either "core 0" or "core 1") on a dual core machine, but now I have...

Vista freezes solid on AMD dual core, single core ok

Hi! I am totally frustrated and clueless with my Vista Ultimate system. Usually after a few minutes after booting, the system freezes solid, no BSOD, no dump, only reset...

Sysprep Question - Single Core and Dual Core Machines

Hello: I am a PC Analyst for a large company and have been tasked with creating an image for our privately managed LANs. My company uses Dell, Lenovo (IBM), and HP desktops...

W2k server (Beta 3!) - fine on single core Athlon, "No Go" on intel Dual Core

Hello! For some reason I instelled W2k Server Beta 3 Build 2031 (under VPC 2007) and it installed/runs fine on my AMD Athlon-based home built box (XP Home). On my Core Duo...


All times are GMT. The time now is 04:07 AM. | Privacy Policy