Click here to Skip to main content
15,886,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: help Pin
David Crow1-Jun-09 9:35
David Crow1-Jun-09 9:35 
AnswerRe: help Pin
Michael Schubert1-Jun-09 22:00
Michael Schubert1-Jun-09 22:00 
QuestionCView::OnFilePrintPreview Pin
Software20071-Jun-09 7:35
Software20071-Jun-09 7:35 
QuestionAdd a scrollbar when I StrechtBlt() an image? Pin
Episodio11-Jun-09 6:44
Episodio11-Jun-09 6:44 
QuestionAfter response WM_DRAWITEM message , how to make a function that it is similar to CMemu::SetMenuItemBitmaps [modified] Pin
bdwzz1-Jun-09 5:53
bdwzz1-Jun-09 5:53 
Questionthreading differences VC6 v VS2005 Pin
Chris Losinger1-Jun-09 4:29
professionalChris Losinger1-Jun-09 4:29 
AnswerRe: threading differences VC6 v VS2005 Pin
Luc Pattyn1-Jun-09 4:52
sitebuilderLuc Pattyn1-Jun-09 4:52 
GeneralRe: threading differences VC6 v VS2005 Pin
Chris Losinger1-Jun-09 5:10
professionalChris Losinger1-Jun-09 5:10 
Luc Pattyn wrote:
gnore the middle border pixels, i.e. let one thread handle the left 45% of the image, the other the rightside 45% of the image, and ignore the middle 10%.


i think i updated my post since you started your reply.

the process here isn't the 50/50 split with the heavy inter-thread communication, which i initially described - that was a different part of the job, the one i stayed up all night fighting with. rather, the process is four totally independent threads going after different horizontal strips of an image, doing a Sobel filter (a two kernel convolution) (tried vertical strips, too - slightly slower). the only difference in code for the multi-threaded operation is that threads working on strips which don't touch the top or bottom of the image don't have to worry about bounds checking.

Luc Pattyn wrote:
I don't think the IDE is fundamentally involved in the difference of the results.


it is IDE (or at least CRT) dependent.

single-threaded, VC6: 0.31 s
multi-threaded, VC6: 1.0 s

single-threaded, VS05: 0.31 s
multi-threaded, VS05: 0.14 s

VS08 results are the same as the VS05 results.

exact same code, same machine, same input and parameters, tested multiple times. the single-threaded result confirms that the difference must be in how threading is handled by the different VC versions.


GeneralRe: threading differences VC6 v VS2005 Pin
Luc Pattyn1-Jun-09 5:49
sitebuilderLuc Pattyn1-Jun-09 5:49 
GeneralRe: threading differences VC6 v VS2005 Pin
Chris Losinger1-Jun-09 6:15
professionalChris Losinger1-Jun-09 6:15 
GeneralRe: threading differences VC6 v VS2005 Pin
Randor 1-Jun-09 7:14
professional Randor 1-Jun-09 7:14 
GeneralRe: threading differences VC6 v VS2005 Pin
ZelionThunder2-Jun-09 17:43
ZelionThunder2-Jun-09 17:43 
GeneralRe: threading differences VC6 v VS2005 Pin
Luc Pattyn1-Jun-09 6:03
sitebuilderLuc Pattyn1-Jun-09 6:03 
GeneralRe: threading differences VC6 v VS2005 Pin
Chris Losinger1-Jun-09 6:16
professionalChris Losinger1-Jun-09 6:16 
AnswerRe: threading differences VC6 v VS2005 Pin
Joe Woodbury1-Jun-09 7:50
professionalJoe Woodbury1-Jun-09 7:50 
GeneralRe: threading differences VC6 v VS2005 Pin
Chris Losinger1-Jun-09 7:53
professionalChris Losinger1-Jun-09 7:53 
QuestionGadjet integration with IE toolbar? Pin
ritz12341-Jun-09 4:16
ritz12341-Jun-09 4:16 
QuestionIn Window forms application C++ Pin
wael_r1-Jun-09 3:33
wael_r1-Jun-09 3:33 
AnswerRe: In Window forms application C++ Pin
David Crow1-Jun-09 3:45
David Crow1-Jun-09 3:45 
AnswerRe: In Window forms application C++ Pin
fanronghua1-Jun-09 19:25
fanronghua1-Jun-09 19:25 
QuestionTyping in Unicode language Pin
Benjamin Bruno1-Jun-09 3:32
Benjamin Bruno1-Jun-09 3:32 
QuestionSNMP development Pin
Jim Crafton1-Jun-09 3:25
Jim Crafton1-Jun-09 3:25 
AnswerRe: SNMP development Pin
Joe Woodbury1-Jun-09 8:19
professionalJoe Woodbury1-Jun-09 8:19 
GeneralRe: SNMP development Pin
Jim Crafton1-Jun-09 8:26
Jim Crafton1-Jun-09 8:26 
QuestionCRichEditCtrl on CMDIChildWnd and to capture mouse control Pin
prithaa1-Jun-09 2:48
prithaa1-Jun-09 2:48 

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.