Click here to Skip to main content
15,916,378 members
Home / Discussions / C#
   

C#

 
GeneralRe: MultiThreading, went back to basics.. Pin
Dan Neely26-Nov-08 8:49
Dan Neely26-Nov-08 8:49 
GeneralRe: MultiThreading, went back to basics.. Pin
EliottA26-Nov-08 8:28
EliottA26-Nov-08 8:28 
QuestionRe: MultiThreading, went back to basics.. Pin
led mike26-Nov-08 8:33
led mike26-Nov-08 8:33 
AnswerRe: MultiThreading, went back to basics.. Pin
EliottA26-Nov-08 8:35
EliottA26-Nov-08 8:35 
AnswerRe: MultiThreading, went back to basics.. Pin
Dan Neely26-Nov-08 8:47
Dan Neely26-Nov-08 8:47 
AnswerRe: MultiThreading, went back to basics.. Pin
Luc Pattyn26-Nov-08 10:02
sitebuilderLuc Pattyn26-Nov-08 10:02 
GeneralRe: MultiThreading, went back to basics.. Pin
EliottA26-Nov-08 10:10
EliottA26-Nov-08 10:10 
GeneralRe: MultiThreading, went back to basics.. Pin
Luc Pattyn26-Nov-08 10:38
sitebuilderLuc Pattyn26-Nov-08 10:38 
Hi,

Basically multi-threading is to an app, what multitasking is to a system.
So the potential gain is twofold:

1.
as soon as one thread can not continue (e.g. pending I/O) instead of the CPU becoming idle (assuming only one app is present), another thread will take over, hence the total app's elapsed time CAN be much less than when you do everything sequentially on a single thread.

2.
your app MAY be much simpler to write in a multi-threaded way: you might ignore how the events in different threads will occur in real-time, and get away with it. In a single thread things are bound t occur in the order they were programmed in code, which may or may not be an accurate representation of the outside world.
However, thread synchronization may be a concern, if you don't synchronize, results may be wrong; and if you don't synchronize correctly, deadlocks may occur, causing your app to hang.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


AnswerRe: MultiThreading, went back to basics.. Pin
jas0n2326-Nov-08 18:07
jas0n2326-Nov-08 18:07 
QuestionVMR9 issue [modified] Pin
GrizzlyDoug26-Nov-08 7:09
GrizzlyDoug26-Nov-08 7:09 
AnswerRe: VMR9 issue Pin
MBrooker7-Mar-09 6:23
MBrooker7-Mar-09 6:23 
QuestionTry...Catch block Pin
EliottA26-Nov-08 6:54
EliottA26-Nov-08 6:54 
AnswerRe: Try...Catch block Pin
PIEBALDconsult26-Nov-08 7:29
mvePIEBALDconsult26-Nov-08 7:29 
AnswerRe: Try...Catch block Pin
Gideon Engelberth26-Nov-08 7:33
Gideon Engelberth26-Nov-08 7:33 
AnswerRe: Try...Catch block Pin
Paul Conrad26-Nov-08 9:23
professionalPaul Conrad26-Nov-08 9:23 
GeneralRe: Try...Catch block [modified] Pin
Luc Pattyn26-Nov-08 10:31
sitebuilderLuc Pattyn26-Nov-08 10:31 
QuestionSearching for URL's in... Pin
jas0n2326-Nov-08 6:19
jas0n2326-Nov-08 6:19 
AnswerRe: Searching for URL's in... Pin
Christian Graus26-Nov-08 7:44
protectorChristian Graus26-Nov-08 7:44 
QuestionRe: Searching for URL's in... Pin
jas0n2326-Nov-08 16:32
jas0n2326-Nov-08 16:32 
QuestionLinq - Inserting into IDENTITY column. Pin
Exception Duck26-Nov-08 5:52
Exception Duck26-Nov-08 5:52 
QuestionHTTPContext for Remote object. (i didn't find Remoting forum) Pin
Member 232448326-Nov-08 5:47
Member 232448326-Nov-08 5:47 
QuestionConfigurationSettings Pin
madhu.nzd26-Nov-08 4:21
madhu.nzd26-Nov-08 4:21 
QuestionAssertions Pin
CodingYoshi26-Nov-08 4:05
CodingYoshi26-Nov-08 4:05 
AnswerRe: Assertions Pin
User 665826-Nov-08 5:32
User 665826-Nov-08 5:32 
Questionneed help translating one certain line of code from c++ to c# Pin
mSh198526-Nov-08 3:24
mSh198526-Nov-08 3:24 

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.