Click here to Skip to main content
15,903,362 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: threading Pin
Luc Pattyn10-Oct-07 8:08
sitebuilderLuc Pattyn10-Oct-07 8:08 
GeneralRe: threading Pin
led mike10-Oct-07 8:35
led mike10-Oct-07 8:35 
QuestionRe: threading Pin
steve_a_p10-Oct-07 9:49
steve_a_p10-Oct-07 9:49 
AnswerRe: threading Pin
Patrick Etc.10-Oct-07 10:05
Patrick Etc.10-Oct-07 10:05 
AnswerRe: threading Pin
Luc Pattyn10-Oct-07 10:54
sitebuilderLuc Pattyn10-Oct-07 10:54 
GeneralRe: threading Pin
steve_a_p10-Oct-07 11:19
steve_a_p10-Oct-07 11:19 
GeneralRe: threading Pin
Patrick Etc.10-Oct-07 10:02
Patrick Etc.10-Oct-07 10:02 
GeneralRe: threading Pin
Luc Pattyn10-Oct-07 11:02
sitebuilderLuc Pattyn10-Oct-07 11:02 
Yeah, it is not perfect, but my main objective was to warn against too many threads;
some people seem to expect performance increases linearly with the number of threads,
which obviously is not true at all.

So for a single processor I often give the following approach:
"as a first approximation, this is what you could do: write and run the code to use a
single thread; observe the CPU load (with Task Manager) as a percentage.
The inverse number is the number of threads you want, so if it is close to 100% extra
threads won't bring you anything; if it is near 25% using four threads MIGHT
increase the performance by four, bringing the CPU load to 100%. More threads
than that won't help you."

And one should not forget the obvious approach to increasing performance, is by optimizing
the application at all levels: algorithms, data structures, coding, compiler settings, etc.

Smile | :)


Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


GeneralRe: threading Pin
steve_a_p10-Oct-07 11:09
steve_a_p10-Oct-07 11:09 
GeneralRe: threading Pin
Robert Rohde10-Oct-07 11:38
Robert Rohde10-Oct-07 11:38 
GeneralRe: threading Pin
Patrick Etc.10-Oct-07 11:47
Patrick Etc.10-Oct-07 11:47 
GeneralRe: threading Pin
Robert Rohde10-Oct-07 11:59
Robert Rohde10-Oct-07 11:59 
GeneralRe: threading Pin
Patrick Etc.10-Oct-07 12:32
Patrick Etc.10-Oct-07 12:32 
GeneralRe: threading Pin
led mike12-Oct-07 5:03
led mike12-Oct-07 5:03 
GeneralRe: threading Pin
Patrick Etc.12-Oct-07 6:06
Patrick Etc.12-Oct-07 6:06 
Questionwindows service to process SOAP call in.net2005 Pin
anumadhu9-Oct-07 23:38
anumadhu9-Oct-07 23:38 
AnswerRe: windows service to process SOAP call in.net2005 Pin
led mike10-Oct-07 6:18
led mike10-Oct-07 6:18 
QuestionRe: windows service to process SOAP call in.net2005 Pin
anumadhu10-Oct-07 22:08
anumadhu10-Oct-07 22:08 
AnswerRe: windows service to process SOAP call in.net2005 Pin
led mike11-Oct-07 5:36
led mike11-Oct-07 5:36 
AnswerRe: windows service to process SOAP call in.net2005 Pin
matee_code10-Oct-07 22:19
matee_code10-Oct-07 22:19 
AnswerRe: windows service to process SOAP call in.net2005 Pin
lmoelleb11-Oct-07 21:27
lmoelleb11-Oct-07 21:27 
QuestionWhy .NET Framework Pin
prithaa9-Oct-07 18:28
prithaa9-Oct-07 18:28 
AnswerRe: Why .NET Framework Pin
Christian Graus9-Oct-07 18:47
protectorChristian Graus9-Oct-07 18:47 
GeneralRe: Why .NET Framework Pin
originSH9-Oct-07 22:37
originSH9-Oct-07 22:37 
AnswerRe: Why .NET Framework Pin
#realJSOP10-Oct-07 3:46
professional#realJSOP10-Oct-07 3:46 

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.