Click here to Skip to main content
15,893,486 members
Home / Discussions / C#
   

C#

 
AnswerRe: Control.Invoke must be used to interact with controls created on a seperate thread Pin
vivasaayi10-Dec-09 20:58
vivasaayi10-Dec-09 20:58 
GeneralRe: Control.Invoke must be used to interact with controls created on a seperate thread Pin
benjamin yap10-Dec-09 21:34
benjamin yap10-Dec-09 21:34 
GeneralRe: Control.Invoke must be used to interact with controls created on a seperate thread Pin
vivasaayi11-Dec-09 1:32
vivasaayi11-Dec-09 1:32 
GeneralRe: Control.Invoke must be used to interact with controls created on a seperate thread [modified] Pin
benjamin yap11-Dec-09 4:32
benjamin yap11-Dec-09 4:32 
QuestionGeneric Property Error Pin
Lino Chacko10-Dec-09 16:41
Lino Chacko10-Dec-09 16:41 
AnswerRe: Generic Property Error Pin
Migounette10-Dec-09 22:48
Migounette10-Dec-09 22:48 
QuestionHow to traverse a tree (class containing parent and child properties of the same class) using threads? Pin
Rafferty Uy10-Dec-09 15:42
Rafferty Uy10-Dec-09 15:42 
AnswerRe: How to traverse a tree (class containing parent and child properties of the same class) using threads? Pin
Migounette11-Dec-09 4:41
Migounette11-Dec-09 4:41 
In fact, the person that told you this does not know the final step of your application or he tried to impress you Smile | :)

You may have multiple threads in order to travers the tree, but in your case, the problem will be the output (Console.Writeline(....)) which is thread safe, you will have a lock in order to block multiple threads to access the output buffer.

So, except if you are sure that you have a multiple core, in order millions of data (but in this case do not use the Console), I advise you to stay thread safe (1 thread and this one will catch the maximum of CPU) or otherwise you wil have a timce slice handling to do and lock/unlock to manage.

You should have a good start with:

Generic Background Worker[^]

Good luck
Questionhi Pin
bassam eshteba10-Dec-09 12:43
bassam eshteba10-Dec-09 12:43 
AnswerRe: hi Pin
Sir Dot Net10-Dec-09 13:23
Sir Dot Net10-Dec-09 13:23 
GeneralRe: hi Pin
bassam eshteba10-Dec-09 14:00
bassam eshteba10-Dec-09 14:00 
Questionhi Pin
bassam eshteba10-Dec-09 12:01
bassam eshteba10-Dec-09 12:01 
AnswerRe: hi Pin
Luc Pattyn10-Dec-09 12:04
sitebuilderLuc Pattyn10-Dec-09 12:04 
JokeRe: hi Pin
dan!sh 10-Dec-09 17:51
professional dan!sh 10-Dec-09 17:51 
AnswerRe: hi Pin
bassam eshteba10-Dec-09 12:17
bassam eshteba10-Dec-09 12:17 
GeneralRe: hi Pin
Luc Pattyn10-Dec-09 14:10
sitebuilderLuc Pattyn10-Dec-09 14:10 
QuestionUsing html agility pack Pin
Baeltazor10-Dec-09 11:01
Baeltazor10-Dec-09 11:01 
AnswerRe: Using html agility pack Pin
Ravi Bhavnani10-Dec-09 11:20
professionalRavi Bhavnani10-Dec-09 11:20 
QuestionStatic Constructors/Static Initializers Pin
KnyteHawkk10-Dec-09 10:23
KnyteHawkk10-Dec-09 10:23 
AnswerRe: Static Constructors/Static Initializers [modified] Pin
PIEBALDconsult10-Dec-09 10:51
mvePIEBALDconsult10-Dec-09 10:51 
GeneralRe: Static Constructors/Static Initializers Pin
KnyteHawkk10-Dec-09 11:16
KnyteHawkk10-Dec-09 11:16 
GeneralRe: Static Constructors/Static Initializers Pin
PIEBALDconsult10-Dec-09 11:45
mvePIEBALDconsult10-Dec-09 11:45 
GeneralRe: Static Constructors/Static Initializers Pin
KnyteHawkk10-Dec-09 11:46
KnyteHawkk10-Dec-09 11:46 
AnswerRe: Static Constructors/Static Initializers Pin
Ian Shlasko10-Dec-09 11:28
Ian Shlasko10-Dec-09 11:28 
GeneralRe: Static Constructors/Static Initializers Pin
PIEBALDconsult10-Dec-09 11:44
mvePIEBALDconsult10-Dec-09 11:44 

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.