Click here to Skip to main content
15,891,529 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetWindowRect() Pin
Steve Echols4-Nov-06 21:21
Steve Echols4-Nov-06 21:21 
QuestionHOWTO: get CMenu information from a CMenu pointer Pin
Mohammad A Gdeisat4-Nov-06 5:25
Mohammad A Gdeisat4-Nov-06 5:25 
AnswerRe: HOWTO: get CMenu information from a CMenu pointer Pin
Mark Salsbery4-Nov-06 8:05
Mark Salsbery4-Nov-06 8:05 
GeneralRe: HOWTO: get CMenu information from a CMenu pointer Pin
Mohammad A Gdeisat4-Nov-06 10:53
Mohammad A Gdeisat4-Nov-06 10:53 
GeneralRe: HOWTO: get CMenu information from a CMenu pointer Pin
Mark Salsbery4-Nov-06 12:23
Mark Salsbery4-Nov-06 12:23 
GeneralRe: HOWTO: get CMenu information from a CMenu pointer Pin
Mohammad A Gdeisat4-Nov-06 19:50
Mohammad A Gdeisat4-Nov-06 19:50 
GeneralRe: HOWTO: get CMenu information from a CMenu pointer Pin
Mark Salsbery4-Nov-06 22:48
Mark Salsbery4-Nov-06 22:48 
QuestionAbout Multi Core Pin
bouli4-Nov-06 5:17
bouli4-Nov-06 5:17 
Hello gurus,

I have a question concerning multi core programming.

I have written a simple independent thread encapsulated in a class that simply display a pixel at a random location and random color.

I can launch the thread on the CPU I want.

I have 4 x64 cores on my computer. So, when I saw the incredible speed I said to my self "ok, if it goes so fast on 1 CPU, it will go 4 time faster on 4 CPUs". So, I decided to create an array of my class that contains the thread and launch the thread on every CPUs with masks { 1, 2, 4, 8 }.

I noticed that it goes slower than it should!

Norally, as I launch 4 threads on 4 different CPUs, it can display simultaneously 4 pixel at a time, so it should give the illusion to go 4 time faster. But it is not the case.

My question is simply... WHY??? Why it goes slower than it should? What I have missed?

Thanks in advance for your answers.

Best regards.

Fred.



There is no spoon.

AnswerRe: About Multi Core Pin
Mark Salsbery4-Nov-06 8:42
Mark Salsbery4-Nov-06 8:42 
GeneralRe: About Multi Core Pin
bouli4-Nov-06 13:54
bouli4-Nov-06 13:54 
GeneralRe: About Multi Core Pin
Mark Salsbery4-Nov-06 16:07
Mark Salsbery4-Nov-06 16:07 
GeneralRe: About Multi Core Pin
bouli5-Nov-06 0:28
bouli5-Nov-06 0:28 
GeneralRe: About Multi Core Pin
Mark Salsbery5-Nov-06 8:14
Mark Salsbery5-Nov-06 8:14 
GeneralRe: About Multi Core Pin
bouli5-Nov-06 8:21
bouli5-Nov-06 8:21 
GeneralRe: About Multi Core Pin
Mark Salsbery5-Nov-06 8:53
Mark Salsbery5-Nov-06 8:53 
AnswerRe: About Multi Core Pin
Mark Salsbery4-Nov-06 8:57
Mark Salsbery4-Nov-06 8:57 
QuestionAccess control from a user defined class (CFormView based SDI application) [modified] Pin
cy163@hotmail.com4-Nov-06 4:55
cy163@hotmail.com4-Nov-06 4:55 
AnswerRe: Access control from a user defined class (CFormView based SDI application) Pin
Mark Salsbery4-Nov-06 8:19
Mark Salsbery4-Nov-06 8:19 
GeneralRe: Access control from a user defined class (CFormView based SDI application) Pin
cy163@hotmail.com5-Nov-06 2:39
cy163@hotmail.com5-Nov-06 2:39 
GeneralRe: Access control from a user defined class (CFormView based SDI application) Pin
cy163@hotmail.com5-Nov-06 3:52
cy163@hotmail.com5-Nov-06 3:52 
GeneralRe: Access control from a user defined class (CFormView based SDI application) Pin
Mark Salsbery5-Nov-06 7:38
Mark Salsbery5-Nov-06 7:38 
GeneralRe: Access control from a user defined class (CFormView based SDI application) [modified] Pin
cy163@hotmail.com5-Nov-06 18:27
cy163@hotmail.com5-Nov-06 18:27 
QuestionHow to create a child window with menu from a dialog based application? Pin
Cyber Friend4-Nov-06 4:52
Cyber Friend4-Nov-06 4:52 
QuestionReallocation Pin
hint_544-Nov-06 3:53
hint_544-Nov-06 3:53 
AnswerRe: Reallocation Pin
Waldermort4-Nov-06 4:55
Waldermort4-Nov-06 4:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.