Click here to Skip to main content
       

C#

 
AnswerRe: Display an array elements in 2 columns using the console PinmemberRichard Deeming28-Jan-13 10:09 
GeneralRe: Display an array elements in 2 columns using the console PinmemberTheGermoz28-Jan-13 11:47 
QuestionDoes backgroundWorker make code slower? PinmemberMichCl28-Jan-13 9:35 
AnswerRe: Does backgroundWorker make code slower? PinmemberPIEBALDconsult28-Jan-13 16:02 
GeneralRe: Does backgroundWorker make code slower? PinmemberMichCl29-Jan-13 2:18 
GeneralRe: Does backgroundWorker make code slower? PinmemberPIEBALDconsult29-Jan-13 3:16 
QuestionDoes backgroundWorker make code slower? PinmemberMichCl28-Jan-13 9:35 
AnswerRe: Does backgroundWorker make code slower? PinprotectorPete 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? PinmemberMichCl29-Jan-13 2:19 
GeneralRe: Does backgroundWorker make code slower? PinmemberMichCl29-Jan-13 4:02 
GeneralRe: Does backgroundWorker make code slower? PinprotectorPete O'Hanlon29-Jan-13 4:12 
QuestionGroupPrincipalExt can not be used in a query against this store PinmemberJD8628-Jan-13 8:18 
AnswerRe: GroupPrincipalExt can not be used in a query against this store PinmemberRichard Deeming28-Jan-13 8:26 
GeneralRe: GroupPrincipalExt can not be used in a query against this store PinmemberJD8628-Jan-13 9:49 
QuestionCheck if polygon is Inside another Pinmembergilvani28-Jan-13 7:48 
AnswerRe: Check if polygon is Inside another [modified] Pinmemberpt140128-Jan-13 8:05 
GeneralRe: Check if polygon is Inside another Pinmembergilvani28-Jan-13 23:03 
AnswerRe: Check if polygon is Inside another PinmemberAlan Balkany29-Jan-13 4:12 
GeneralRe: Check if polygon is Inside another Pinmembergilvani29-Jan-13 4:16 
GeneralRe: Check if polygon is Inside another PinmemberAlan Balkany29-Jan-13 4:22 
QuestionProblems in retrieving HttpResponse content Pinmembertiwal28-Jan-13 4:16 
AnswerRe: Problems in retrieving HttpResponse content PinmemberRichard Deeming28-Jan-13 5:06 
GeneralRe: Problems in retrieving HttpResponse content Pinmembertiwal28-Jan-13 23:02 
QuestionAbout method TextWriter.Write() Pinmembertaibc27-Jan-13 23:52 
AnswerRe: About method TextWriter.Write() PinmemberBobJanova28-Jan-13 0:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web04 | 2.8.141022.2 | Last Updated 23 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid