Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUI Thread question (noob) Pin
Maximilien19-Feb-08 13:47
Maximilien19-Feb-08 13:47 
GeneralRe: UI Thread question (noob) Pin
Mark Salsbery19-Feb-08 14:45
Mark Salsbery19-Feb-08 14:45 
GeneralRe: UI Thread question (noob) Pin
Maximilien19-Feb-08 15:11
Maximilien19-Feb-08 15:11 
QuestionHow to start ? built app to communication through USB port Pin
quangpk19-Feb-08 13:12
quangpk19-Feb-08 13:12 
AnswerRe: How to start ? built app to communication through USB port Pin
Maxwell Chen19-Feb-08 15:57
Maxwell Chen19-Feb-08 15:57 
QuestionAny buttons styles to get a CButton to look like a toolbar button? Pin
jeffb4219-Feb-08 11:19
jeffb4219-Feb-08 11:19 
GeneralRe: Any buttons styles to get a CButton to look like a toolbar button? Pin
Maxwell Chen19-Feb-08 16:50
Maxwell Chen19-Feb-08 16:50 
GeneralSingle Processor Multithreaded Application!!!!!!! Does it Help????????????????? [modified] Pin
swarup19-Feb-08 10:05
swarup19-Feb-08 10:05 
Hay hi Guys

i have a single processor in my system and in my application i create more then 1 thread, so does it enhance my application, as at a given point of time only instruction can be executed, how does it make difference, does it speed up my application,

for example
i am retrieving 500 web logs from a site,
so if i create 10 threads in one go and in each thread i retrieve 1 log
i have to make 50 calls at go which will fetch those 500 logs,
so will it speed up the downloading or fetching up the logs
or should i go with application thread which will fetch 1 by 1,

which method will be useful...........

or any idea or implimentaion idea..........

i am not concerned about the server bandwidth or speed of my processor, my Question is doing the repetitive work in one thread at a time with multiple time is faster or doing it in multiple threads is faster . P.S. not concerned about UI too

thread t{ print 1;} /1st time
..
thread t{ print 1;}/100th time

OR

thread {t0,t1,t2,t3,t4,t5,t6,t7,t8,t9}{print 1;}/1st 10 run
..
thread {t0,t1,t2,t3,t4,t5,t6,t7,t8,t9}{print 1;}/last 10run=100

which will complete faster

Thanks
Swarup

modified on Tuesday, February 19, 2008 5:12 PM

GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
Maximilien19-Feb-08 10:24
Maximilien19-Feb-08 10:24 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
swarup19-Feb-08 10:53
swarup19-Feb-08 10:53 
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
led mike19-Feb-08 10:54 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
swarup19-Feb-08 11:08
swarup19-Feb-08 11:08 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
led mike19-Feb-08 11:31
led mike19-Feb-08 11:31 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
swarup19-Feb-08 12:20
swarup19-Feb-08 12:20 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
led mike19-Feb-08 12:24
led mike19-Feb-08 12:24 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
David Crow19-Feb-08 17:04
David Crow19-Feb-08 17:04 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
Waldermort19-Feb-08 20:09
Waldermort19-Feb-08 20:09 
QuestionHow to make a line of bank customers with Queue Pin
apejman19-Feb-08 7:11
apejman19-Feb-08 7:11 
AnswerRe: How to make a line of bank customers with Queue Pin
Nathan Holt at EMOM19-Feb-08 8:51
Nathan Holt at EMOM19-Feb-08 8:51 
GeneralDialog with an activex control on it, living in a dll Pin
pragmaticDreamer19-Feb-08 5:55
pragmaticDreamer19-Feb-08 5:55 
General[Solved] VC6 and AMD Dual Core CPU problem [modified] Pin
followait19-Feb-08 5:30
followait19-Feb-08 5:30 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
Maximilien19-Feb-08 6:48
Maximilien19-Feb-08 6:48 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 15:01
followait19-Feb-08 15:01 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
Maximilien19-Feb-08 15:13
Maximilien19-Feb-08 15:13 

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.