Click here to Skip to main content
15,885,278 members
Home / Discussions / C#
   

C#

 
QuestionState signalling from windows services Pin
minnie mouse1-Jan-10 11:43
minnie mouse1-Jan-10 11:43 
AnswerRe: State signalling from windows services Pin
Jimmanuel1-Jan-10 12:25
Jimmanuel1-Jan-10 12:25 
GeneralRe: State signalling from windows services Pin
minnie mouse2-Jan-10 8:54
minnie mouse2-Jan-10 8:54 
QuestionHow to increase concurrent parallel tasks with System.Threading.Parallel (.Net 4.0) Pin
Gilad Kapelushnik1-Jan-10 11:19
Gilad Kapelushnik1-Jan-10 11:19 
GeneralRe: How to increase concurrent parallel tasks with System.Threading.Parallel (.Net 4.0) [modified] Pin
harold aptroot1-Jan-10 11:24
harold aptroot1-Jan-10 11:24 
GeneralRe: How to increase concurrent parallel tasks with System.Threading.Parallel (.Net 4.0) Pin
Gilad Kapelushnik1-Jan-10 11:51
Gilad Kapelushnik1-Jan-10 11:51 
GeneralRe: How to increase concurrent parallel tasks with System.Threading.Parallel (.Net 4.0) Pin
harold aptroot1-Jan-10 12:19
harold aptroot1-Jan-10 12:19 
AnswerRe: How to increase concurrent parallel tasks with System.Threading.Parallel (.Net 4.0) Pin
Nicholas Butler1-Jan-10 13:26
sitebuilderNicholas Butler1-Jan-10 13:26 
You can use an overload that takes a ParallelOptions parameter and set its MaxDegreeOfParallelism property. However, the default TaskScheduler uses the thread pool to decide the number of running threads, so you're not really in control.

If you use Tasks instead, you can pass TaskCreationOptions.LongRunning, which spawns a new thread every time.

Nick

----------------------------------
Be excellent to each other Smile | :)

AnswerRe: How to increase concurrent parallel tasks with System.Threading.Parallel (.Net 4.0) Pin
Eric Dahlvang1-Jan-10 14:26
Eric Dahlvang1-Jan-10 14:26 
Questiontelnet server in c# Pin
rjs1 41-Jan-10 9:18
rjs1 41-Jan-10 9:18 
AnswerRe: telnet server in c# [modified] Pin
Abhijit Jana1-Jan-10 9:42
professionalAbhijit Jana1-Jan-10 9:42 
GeneralRe: telnet server in c# Pin
Abhishek Sur1-Jan-10 9:58
professionalAbhishek Sur1-Jan-10 9:58 
GeneralRe: telnet server in c# Pin
Abhijit Jana1-Jan-10 21:28
professionalAbhijit Jana1-Jan-10 21:28 
AnswerRe: telnet server in c# Pin
rjs1 420-Jan-10 16:57
rjs1 420-Jan-10 16:57 
Question[Message Deleted] Pin
THE SK1-Jan-10 5:34
THE SK1-Jan-10 5:34 
AnswerRe: How to catch RequestValidationException Pin
AhsanS1-Jan-10 5:43
AhsanS1-Jan-10 5:43 
AnswerRe: [Message Deleted] Pin
Abhijit Jana1-Jan-10 9:41
professionalAbhijit Jana1-Jan-10 9:41 
Questionsp.net c# search function? add friend function? Pin
go90901-Jan-10 4:34
go90901-Jan-10 4:34 
GeneralRe: sp.net c# search function? add friend function? Pin
harold aptroot1-Jan-10 4:52
harold aptroot1-Jan-10 4:52 
QuestionShortened version of setting and getting properties Pin
Brendan Vogt1-Jan-10 3:50
Brendan Vogt1-Jan-10 3:50 
AnswerRe: Shortened version of setting and getting properties Pin
N a v a n e e t h1-Jan-10 4:02
N a v a n e e t h1-Jan-10 4:02 
GeneralRe: Shortened version of setting and getting properties Pin
Brendan Vogt1-Jan-10 9:29
Brendan Vogt1-Jan-10 9:29 
AnswerRe: Shortened version of setting and getting properties Pin
DaveyM691-Jan-10 5:14
professionalDaveyM691-Jan-10 5:14 
QuestionAXmediaplayer under Vis2008 Pin
electriac1-Jan-10 3:36
electriac1-Jan-10 3:36 
AnswerRe: AXmediaplayer under Vis2008 Pin
electriac1-Jan-10 4:38
electriac1-Jan-10 4:38 

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.