Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to check value in IF statement.. Pin
Som Shekhar20-Jan-10 22:20
Som Shekhar20-Jan-10 22:20 
GeneralRe: How to check value in IF statement.. Pin
<<Tash18>>20-Jan-10 22:21
<<Tash18>>20-Jan-10 22:21 
JokeRe: How to check value in IF statement.. Pin
Som Shekhar20-Jan-10 22:22
Som Shekhar20-Jan-10 22:22 
GeneralRe: How to check value in IF statement.. Pin
Calla20-Jan-10 22:25
Calla20-Jan-10 22:25 
GeneralRe: How to check value in IF statement.. Pin
Som Shekhar20-Jan-10 22:27
Som Shekhar20-Jan-10 22:27 
AnswerRe: How to check value in IF statement.. Pin
#realJSOP21-Jan-10 0:02
professional#realJSOP21-Jan-10 0:02 
QuestionThreads Pin
P.T.R.K20-Jan-10 16:50
P.T.R.K20-Jan-10 16:50 
AnswerRe: Threads Pin
Luc Pattyn20-Jan-10 16:57
sitebuilderLuc Pattyn20-Jan-10 16:57 
C# would not be the limiting factor.
Windows could probably cope; a server version would for sure.

But I haven't encountered any application yet where it would make sense to have that many threads in a single process. It would be a huge waste of cycles (thread switches are expensive), bytes (each thread has its context, where the stack is the biggest chunck), and time (your cache efficiency goes down as the fixed size caches are used by more threads now).

Here is my rule of thumb in multi-threading: For most apps, it does not pay to have similar code in more than 1*N to 2*N threads where N is the number of processors.

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]


GeneralRe: Threads Pin
P.T.R.K20-Jan-10 17:14
P.T.R.K20-Jan-10 17:14 
GeneralRe: Threads Pin
Abhinav S20-Jan-10 17:38
Abhinav S20-Jan-10 17:38 
GeneralRe: Threads Pin
Harvey Saayman20-Jan-10 19:35
Harvey Saayman20-Jan-10 19:35 
GeneralRe: Threads Pin
Luc Pattyn21-Jan-10 0:47
sitebuilderLuc Pattyn21-Jan-10 0:47 
GeneralRe: Threads Pin
Harvey Saayman21-Jan-10 0:51
Harvey Saayman21-Jan-10 0:51 
GeneralRe: Threads Pin
Matty2221-Jan-10 11:35
Matty2221-Jan-10 11:35 
AnswerRe: Threads Pin
Harvey Saayman20-Jan-10 19:40
Harvey Saayman20-Jan-10 19:40 
QuestionHow can I copy a multidimensional List Pin
leekangjae20-Jan-10 15:23
leekangjae20-Jan-10 15:23 
AnswerRe: How can I copy a multidimensional List Pin
Not Active20-Jan-10 15:39
mentorNot Active20-Jan-10 15:39 
GeneralRe: How can I copy a multidimensional List Pin
leekangjae20-Jan-10 17:41
leekangjae20-Jan-10 17:41 
AnswerRe: How can I copy a multidimensional List Pin
AspDotNetDev20-Jan-10 16:25
protectorAspDotNetDev20-Jan-10 16:25 
GeneralRe: How can I copy a multidimensional List Pin
Luc Pattyn20-Jan-10 16:51
sitebuilderLuc Pattyn20-Jan-10 16:51 
GeneralRe: How can I copy a multidimensional List Pin
AspDotNetDev20-Jan-10 17:08
protectorAspDotNetDev20-Jan-10 17:08 
GeneralRe: How can I copy a multidimensional List Pin
AspDotNetDev20-Jan-10 17:10
protectorAspDotNetDev20-Jan-10 17:10 
GeneralRe: How can I copy a multidimensional List Pin
AspDotNetDev20-Jan-10 17:15
protectorAspDotNetDev20-Jan-10 17:15 
GeneralRe: How can I copy a multidimensional List Pin
Luc Pattyn20-Jan-10 17:47
sitebuilderLuc Pattyn20-Jan-10 17:47 
QuestionSimulate keypress Pin
Matt Cavanagh20-Jan-10 14:12
Matt Cavanagh20-Jan-10 14:12 

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.