Re: Threading low performance
- From: Steve Dispensa <dispensa@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 14 Jun 2006 10:16:11 -0500
On 6/14/06 7:55 AM, in article eykyRH7jGHA.4512@xxxxxxxxxxxxxxxxxxxx,
"Nicolas Bernard" <nicolas.bernard@xxxxxxxxxxxxxx> wrote:
I've got a question about strange beavior of threading.
I'm copy a bitmap surface to texture, so instead of having a single for...
resulting in around 1920 * 1080 / 4 iterations, i thought of build first 4
threads running 1920 * 1080 / 16 iterations each one, same time. Thing work,
but are faster without thread, I compile in DLL Multithread because of AFX,
I've try with the intel optimised compiler, thing are the same, using thread
is slower than having a single for...
How many CPUs do you have? In general, you will get the highest throughput
by limiting context switching. What happens if you try one thread per
processor?
I'm not a video person btw; sorry if I'm missing something here.
-sd
.
- References:
- Threading low performance
- From: Nicolas Bernard
- Threading low performance
- Prev by Date: Re: How to require a password to stop an NT service?
- Next by Date: GetThreadID or NtQueryInformationThread or what?
- Previous by thread: Threading low performance
- Next by thread: Re: Threading low performance
- Index(es):