Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
AnswerRe: Windows Identity of the currently logged in user Pin
Eddy Vluggen20-Oct-09 23:40
professionalEddy Vluggen20-Oct-09 23:40 
GeneralRe: Windows Identity of the currently logged in user Pin
ramz_g21-Oct-09 2:05
ramz_g21-Oct-09 2:05 
GeneralRe: Windows Identity of the currently logged in user Pin
Eddy Vluggen21-Oct-09 3:18
professionalEddy Vluggen21-Oct-09 3:18 
GeneralRe: Windows Identity of the currently logged in user Pin
ramz_g21-Oct-09 19:15
ramz_g21-Oct-09 19:15 
QuestionSafe Parallel loops Pin
tvbarnard20-Oct-09 21:49
tvbarnard20-Oct-09 21:49 
AnswerRe: Safe Parallel loops Pin
stancrm20-Oct-09 22:27
stancrm20-Oct-09 22:27 
GeneralRe: Safe Parallel loops Pin
tvbarnard20-Oct-09 22:44
tvbarnard20-Oct-09 22:44 
GeneralRe: Safe Parallel loops Pin
stancrm20-Oct-09 22:55
stancrm20-Oct-09 22:55 
http://msdn.microsoft.com/en-us/library/system.threading.threadpool.aspx[^]

Learn first how to use a thread. Because it is not for beginner.

Just an easy sample :
You have an array 0,1,2,3,4,5,6,7,8,9
You want to sum it from 0 to 9.

For single thread, you must do it :
0+1+2+3+4+5+6+7+8+9 <- take probably 10ms (for example).

For multi threading, you must do it :
0+1+2+3+4 <- first thread -> resultA (take probably 5ms)
5+6+7+8+9 <- second thread -> resultB (take probably 5ms)
at the end, just sum resultA and resultB. (take all together 5ms, because resultA and resultB are parallel)

So, got it ?
GeneralRe: Safe Parallel loops Pin
tvbarnard20-Oct-09 23:06
tvbarnard20-Oct-09 23:06 
AnswerRe: Safe Parallel loops [modified] Pin
Hristo-Bojilov20-Oct-09 22:38
Hristo-Bojilov20-Oct-09 22:38 
GeneralRe: Safe Parallel loops Pin
tvbarnard20-Oct-09 22:45
tvbarnard20-Oct-09 22:45 
GeneralRe: Safe Parallel loops Pin
Hristo-Bojilov20-Oct-09 23:55
Hristo-Bojilov20-Oct-09 23:55 
GeneralRe: Safe Parallel loops Pin
tvbarnard20-Oct-09 22:47
tvbarnard20-Oct-09 22:47 
GeneralRe: Safe Parallel loops Pin
tvbarnard20-Oct-09 22:58
tvbarnard20-Oct-09 22:58 
GeneralRe: Safe Parallel loops Pin
Luc Pattyn21-Oct-09 2:47
sitebuilderLuc Pattyn21-Oct-09 2:47 
GeneralRe: Safe Parallel loops Pin
tvbarnard21-Oct-09 3:06
tvbarnard21-Oct-09 3:06 
QuestionEmbed image to an e-mail and not a link… Pin
anderslundsgard20-Oct-09 21:27
anderslundsgard20-Oct-09 21:27 
AnswerRe: Embed image to an e-mail and not a link… Pin
Christian Graus20-Oct-09 21:42
protectorChristian Graus20-Oct-09 21:42 
AnswerRe: Embed image to an e-mail and not a link… Pin
Giorgi Dalakishvili20-Oct-09 23:36
mentorGiorgi Dalakishvili20-Oct-09 23:36 
QuestionProblem in accessing the COM port. "Access denied for COM1 " Pin
pallaka20-Oct-09 21:09
pallaka20-Oct-09 21:09 
AnswerRe: Problem in accessing the COM port. "Access denied for COM1 " Pin
stancrm20-Oct-09 21:24
stancrm20-Oct-09 21:24 
GeneralRe: Problem in accessing the COM port. "Access denied for COM1 " Pin
pallaka20-Oct-09 21:46
pallaka20-Oct-09 21:46 
GeneralRe: Problem in accessing the COM port. "Access denied for COM1 " Pin
stancrm20-Oct-09 22:28
stancrm20-Oct-09 22:28 
GeneralRe: Problem in accessing the COM port. "Access denied for COM1 " Pin
pallaka20-Oct-09 22:30
pallaka20-Oct-09 22:30 
GeneralRe: Problem in accessing the COM port. "Access denied for COM1 " Pin
stancrm20-Oct-09 22:34
stancrm20-Oct-09 22:34 

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.