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

C#

 
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 
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 
Having rules of thumb like 2* number of processors is a totally pointless affair.

Consider the following scenario

--I want to wait on 70 blocking operations

--When one of these operations complete. I would like a response/somethingto happen, quickly (Low latency)

I could

*Have 2*2 processors threads constantly polling all 70 blocking operations every millisecond to see when they are done. This would waste lots of CPU

*Use 70 threads which are all in Wait mode which would consume very little CPU


Using 70 threads would be far better in this case


The number of threads you need has nothing to do with the number of CPUs. And everything to do with latency and how much blocking operations you need to wait on
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 
AnswerRe: Simulate keypress Pin
Bekjong20-Jan-10 16:07
Bekjong20-Jan-10 16:07 
QuestionProblem with AutoResetEvent Array and WaitHandle.WaitAll() Pin
FJJCENTU20-Jan-10 13:27
FJJCENTU20-Jan-10 13:27 
AnswerRe: Problem with AutoResetEvent Array and WaitHandle.WaitAll() Pin
Bekjong20-Jan-10 15:50
Bekjong20-Jan-10 15:50 
AnswerRe: Problem with AutoResetEvent Array and WaitHandle.WaitAll() Pin
Giorgi Dalakishvili20-Jan-10 19:17
mentorGiorgi Dalakishvili20-Jan-10 19:17 
QuestionManaged and Unmanaged code Pin
3bood.ghzawi20-Jan-10 13:03
3bood.ghzawi20-Jan-10 13:03 
AnswerRe: Managed and Unmanaged code Pin
Bekjong20-Jan-10 15:53
Bekjong20-Jan-10 15:53 

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.