Click here to Skip to main content
14,838,357 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
Dave Kreskowiak21-Feb-08 9:35
mveDave Kreskowiak21-Feb-08 9:35 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
led mike19-Feb-08 10:54
Memberled mike19-Feb-08 10:54 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
swarup19-Feb-08 11:08
Memberswarup19-Feb-08 11:08 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
led mike19-Feb-08 11:31
Memberled mike19-Feb-08 11:31 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
swarup19-Feb-08 12:20
Memberswarup19-Feb-08 12:20 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
led mike19-Feb-08 12:24
Memberled mike19-Feb-08 12:24 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
David Crow19-Feb-08 17:04
MemberDavid Crow19-Feb-08 17:04 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
Waldermort19-Feb-08 20:09
MemberWaldermort19-Feb-08 20:09 
It really depends on what you are doing in the threads. Take your example, you have 100 log files to retrieve and process. Perhaps the time to retrieve a single log file would be about 0.5 seconds, then you do some processing, perhaps search a database, which may take anywhere between 0.1 and 10 seconds, then yes, using several threads would increase the speed. In this case, while one thread does a ten second search, another thread may complete 10 1 second searches.

But, if the time is pretty much standard for each log file, then as David Crow said, the constant switching between threads will take away any performance gain.

Waldermort

QuestionHow to make a line of bank customers with Queue Pin
apejman19-Feb-08 7:11
Memberapejman19-Feb-08 7:11 
AnswerRe: How to make a line of bank customers with Queue Pin
Nathan Holt at EMOM19-Feb-08 8:51
MemberNathan Holt at EMOM19-Feb-08 8:51 
GeneralDialog with an activex control on it, living in a dll Pin
pragmaticDreamer19-Feb-08 5:55
MemberpragmaticDreamer19-Feb-08 5:55 
General[Solved] VC6 and AMD Dual Core CPU problem [modified] Pin
followait19-Feb-08 5:30
Memberfollowait19-Feb-08 5:30 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
Maximilien19-Feb-08 6:48
MemberMaximilien19-Feb-08 6:48 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 15:01
Memberfollowait19-Feb-08 15:01 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
Maximilien19-Feb-08 15:13
MemberMaximilien19-Feb-08 15:13 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 15:43
Memberfollowait19-Feb-08 15:43 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
Maxwell Chen19-Feb-08 17:25
MemberMaxwell Chen19-Feb-08 17:25 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 17:38
Memberfollowait19-Feb-08 17:38 
QuestionRe: VC6 and AMD Dual Core CPU problem [modified] Pin
Maxwell Chen19-Feb-08 17:56
MemberMaxwell Chen19-Feb-08 17:56 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 23:08
Memberfollowait19-Feb-08 23:08 
QuestionRe: VC6 and AMD Dual Core CPU problem Pin
David Crow19-Feb-08 17:06
MemberDavid Crow19-Feb-08 17:06 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 17:36
Memberfollowait19-Feb-08 17:36 
QuestionBest Code Signing Certificate? Pin
Stick^19-Feb-08 4:27
MemberStick^19-Feb-08 4:27 
GeneralRe: Best Code Signing Certificate? Pin
Peter Weyzen19-Feb-08 8:55
MemberPeter Weyzen19-Feb-08 8:55 
GeneralRe: Best Code Signing Certificate? Pin
Mark Salsbery19-Feb-08 9:54
MemberMark Salsbery19-Feb-08 9:54 

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.