Click here to Skip to main content
15,902,939 members
Home / Discussions / C#
   

C#

 
AnswerSolved! Pin
Member 94738092-Dec-13 0:10
Member 94738092-Dec-13 0:10 
QuestionHow to query Scom 2012 through c sharp? Pin
turbosupramk315-Nov-13 10:48
turbosupramk315-Nov-13 10:48 
AnswerRe: How to query Scom 2012 through c sharp? Pin
Eddy Vluggen16-Nov-13 1:10
professionalEddy Vluggen16-Nov-13 1:10 
GeneralRe: How to query Scom 2012 through c sharp? Pin
turbosupramk316-Nov-13 1:26
turbosupramk316-Nov-13 1:26 
QuestionPreventing Tread Starvation - Best Practices Pin
Foothill15-Nov-13 6:52
professionalFoothill15-Nov-13 6:52 
AnswerRe: Preventing Tread Starvation - Best Practices Pin
Ron Beyer15-Nov-13 7:05
professionalRon Beyer15-Nov-13 7:05 
GeneralRe: Preventing Tread Starvation - Best Practices Pin
Foothill15-Nov-13 8:21
professionalFoothill15-Nov-13 8:21 
AnswerRe: Preventing Tread Starvation - Best Practices Pin
Matt T Heffron15-Nov-13 11:13
professionalMatt T Heffron15-Nov-13 11:13 
Without knowing more about your problem space:
I'd suggest building a queue (or queues) of the different types of processing (items in the queue are the data for a given processing type) and having threads that loop around: remove item from the queue and process it. As long as there is something in the queue, the threads will do work. When there's nothing there, there's no work to do.
Determine the number of threads (by experimentation(?) on your hardware) that gives near-optimal performance.
It's possible that if things are IO bound or processed off-the-box (e.g., SQL server) the best number of threads will be more or less than the number of cores.
(Or have the application try to self-tune?)
GeneralRe: Preventing Tread Starvation - Best Practices Pin
Foothill15-Nov-13 14:04
professionalFoothill15-Nov-13 14:04 
GeneralRe: Preventing Tread Starvation - Best Practices Pin
Matt T Heffron15-Nov-13 14:10
professionalMatt T Heffron15-Nov-13 14:10 
GeneralRe: Preventing Tread Starvation - Best Practices Pin
Matty2217-Nov-13 22:24
Matty2217-Nov-13 22:24 
AnswerAccording to the internet Pin
Ennis Ray Lynch, Jr.15-Nov-13 7:46
Ennis Ray Lynch, Jr.15-Nov-13 7:46 
GeneralRe: According to the internet Pin
Eddy Vluggen16-Nov-13 1:34
professionalEddy Vluggen16-Nov-13 1:34 
GeneralRe: Preventing Tread Starvation - Best Practices Pin
Richard MacCutchan15-Nov-13 7:57
mveRichard MacCutchan15-Nov-13 7:57 
AnswerRe: Preventing Tread Starvation - Best Practices Pin
Eddy Vluggen15-Nov-13 8:00
professionalEddy Vluggen15-Nov-13 8:00 
GeneralRe: Preventing Tread Starvation - Best Practices Pin
Ennis Ray Lynch, Jr.15-Nov-13 8:09
Ennis Ray Lynch, Jr.15-Nov-13 8:09 
GeneralRe: Preventing Tread Starvation - Best Practices Pin
Foothill15-Nov-13 8:26
professionalFoothill15-Nov-13 8:26 
GeneralRe: Preventing Tread Starvation - Best Practices Pin
Ron Beyer15-Nov-13 8:43
professionalRon Beyer15-Nov-13 8:43 
AnswerRe: Preventing Tread Starvation - Best Practices Pin
Dave Kreskowiak15-Nov-13 10:08
mveDave Kreskowiak15-Nov-13 10:08 
GeneralRe: Preventing Tread Starvation - Best Practices Pin
Foothill15-Nov-13 14:11
professionalFoothill15-Nov-13 14:11 
GeneralRe: Preventing Tread Starvation - Best Practices Pin
Dave Kreskowiak15-Nov-13 17:38
mveDave Kreskowiak15-Nov-13 17:38 
AnswerRe: Preventing Tread Starvation - Best Practices Pin
jschell15-Nov-13 12:39
jschell15-Nov-13 12:39 
GeneralRe: Preventing Tread Starvation - Best Practices Pin
Foothill15-Nov-13 14:18
professionalFoothill15-Nov-13 14:18 
GeneralRe: Preventing Tread Starvation - Best Practices Pin
jschell18-Nov-13 8:26
jschell18-Nov-13 8:26 
Questiondatalist itemtemplete control at server side Pin
MichaelCheong8914-Nov-13 22:27
MichaelCheong8914-Nov-13 22:27 

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.