Click here to Skip to main content
12,889,437 members (49,653 online)
   

C#

 
AnswerRe: Display an array elements in 2 columns using the console Pin
Richard Deeming28-Jan-13 10:09
memberRichard Deeming28-Jan-13 10:09 
GeneralRe: Display an array elements in 2 columns using the console Pin
TheGermoz28-Jan-13 11:47
memberTheGermoz28-Jan-13 11:47 
QuestionDoes backgroundWorker make code slower? Pin
MichCl28-Jan-13 9:35
memberMichCl28-Jan-13 9:35 
AnswerRe: Does backgroundWorker make code slower? Pin
PIEBALDconsult28-Jan-13 16:02
memberPIEBALDconsult28-Jan-13 16:02 
GeneralRe: Does backgroundWorker make code slower? Pin
MichCl29-Jan-13 2:18
memberMichCl29-Jan-13 2:18 
GeneralRe: Does backgroundWorker make code slower? Pin
PIEBALDconsult29-Jan-13 3:16
memberPIEBALDconsult29-Jan-13 3:16 
QuestionDoes backgroundWorker make code slower? Pin
MichCl28-Jan-13 9:35
memberMichCl28-Jan-13 9:35 
AnswerRe: Does backgroundWorker make code slower? Pin
Pete O'Hanlon28-Jan-13 9:51
protectorPete O'Hanlon28-Jan-13 9:51 
The answer is that you aren't comparing the same thing here. What BackgroundWorker does is allow your code to run asynchronously, which simplistically means that the computer will allocate time to run the code on a different thread. This means that there is no guarantee when the code in the async side runs - or completes.

When you run the code on the primary thread, then all the time that your program is running this section of code is allocated to it (assuming you haven't created any other threads), but you will block the primary thread here. I would suggest that you have a read about threading, and investigate the Task classes that make asynchronous code a lot easier.
I was brought up to respect my elders. I don't respect many people nowadays.

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: Does backgroundWorker make code slower? Pin
MichCl29-Jan-13 2:19
memberMichCl29-Jan-13 2:19 
GeneralRe: Does backgroundWorker make code slower? Pin
MichCl29-Jan-13 4:02
memberMichCl29-Jan-13 4:02 
GeneralRe: Does backgroundWorker make code slower? Pin
Pete O'Hanlon29-Jan-13 4:12
protectorPete O'Hanlon29-Jan-13 4:12 
QuestionGroupPrincipalExt can not be used in a query against this store Pin
JD8628-Jan-13 8:18
memberJD8628-Jan-13 8:18 
AnswerRe: GroupPrincipalExt can not be used in a query against this store Pin
Richard Deeming28-Jan-13 8:26
memberRichard Deeming28-Jan-13 8:26 
GeneralRe: GroupPrincipalExt can not be used in a query against this store Pin
JD8628-Jan-13 9:49
memberJD8628-Jan-13 9:49 
QuestionCheck if polygon is Inside another Pin
gilvani28-Jan-13 7:48
membergilvani28-Jan-13 7:48 
AnswerRe: Check if polygon is Inside another Pin
pt140128-Jan-13 8:05
memberpt140128-Jan-13 8:05 
GeneralRe: Check if polygon is Inside another Pin
gilvani28-Jan-13 23:03
membergilvani28-Jan-13 23:03 
AnswerRe: Check if polygon is Inside another Pin
Alan Balkany29-Jan-13 4:12
memberAlan Balkany29-Jan-13 4:12 
GeneralRe: Check if polygon is Inside another Pin
gilvani29-Jan-13 4:16
membergilvani29-Jan-13 4:16 
GeneralRe: Check if polygon is Inside another Pin
Alan Balkany29-Jan-13 4:22
memberAlan Balkany29-Jan-13 4:22 
QuestionProblems in retrieving HttpResponse content Pin
tiwal28-Jan-13 4:16
membertiwal28-Jan-13 4:16 
AnswerRe: Problems in retrieving HttpResponse content Pin
Richard Deeming28-Jan-13 5:06
memberRichard Deeming28-Jan-13 5:06 
GeneralRe: Problems in retrieving HttpResponse content Pin
tiwal28-Jan-13 23:02
membertiwal28-Jan-13 23:02 
QuestionAbout method TextWriter.Write() Pin
taibc27-Jan-13 23:52
membertaibc27-Jan-13 23:52 
AnswerRe: About method TextWriter.Write() Pin
BobJanova28-Jan-13 0:34
memberBobJanova28-Jan-13 0: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.


Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 25 Apr 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid