Click here to Skip to main content
16,012,759 members
Home / Discussions / C#
   

C#

 
GeneralRe: GDI+ FillPolygon Pin
r922-Jul-03 6:22
r922-Jul-03 6:22 
GeneralRe: GDI+ FillPolygon Pin
r922-Jul-03 21:54
r922-Jul-03 21:54 
GeneralRe: GDI+ FillPolygon Pin
Valeria Bogdevich23-Jul-03 7:57
Valeria Bogdevich23-Jul-03 7:57 
GeneralHiding a property in the Property Window Pin
Nick Seng21-Jul-03 20:59
Nick Seng21-Jul-03 20:59 
GeneralRe: Hiding a property in the Property Window Pin
J. Dunlap21-Jul-03 21:15
J. Dunlap21-Jul-03 21:15 
GeneralRe: Hiding a property in the Property Window Pin
Nick Seng21-Jul-03 21:27
Nick Seng21-Jul-03 21:27 
GeneralMultithreading Pin
Alberto Bencivenni21-Jul-03 20:53
Alberto Bencivenni21-Jul-03 20:53 
GeneralRe: Multithreading Pin
Julian Bucknall [MSFT]22-Jul-03 7:04
Julian Bucknall [MSFT]22-Jul-03 7:04 
Alberto

Any other considerations? Sure: what are the threads doing, do the threads interact with other (operating system) processes and threads, are you going to be implementing a thread pool (that is, sharing lots of thread-like activity amongst a small set of threads), how are you implementing synchronization, how many objects need synchronization, do the threads interface with the UI thread, etc, etc.

What I'm trying to get at is this. The question as posed has no right or wrong answer. To find out your answer, you need to write the app, or as much of the app as makes sense, and then profile it (that is run it and tweak it) in the environment you want. Worrying too much about fine details like how can you extract as much performance from a four processor system versus, say, a two processor system when you don't have the actual code is putting the cart before the horse. Writing performant multithreaded apps tends to be more about how efficient and well-written your inter-threadd communication is set up than anything else.

Also, in my experience, trying to second-guess the operating system by forcing some threads onto some CPU and others onto another, could do more harm than good.



Cheers, Julian [MSFT]
Program Manager, C#

This posting is provided "AS IS" with no warranties, and confers no rights.
GeneralRe: Multithreading Pin
Alberto Bencivenni22-Jul-03 21:24
Alberto Bencivenni22-Jul-03 21:24 
GeneralRe: Multithreading Pin
Julian Bucknall [MSFT]23-Jul-03 13:56
Julian Bucknall [MSFT]23-Jul-03 13:56 
GeneralRe: Multithreading Pin
Joe Woodbury22-Jul-03 8:28
professionalJoe Woodbury22-Jul-03 8:28 
GeneralRe: Multithreading Pin
Arun Bhalla22-Jul-03 12:40
Arun Bhalla22-Jul-03 12:40 
GeneralRe: Multithreading Pin
Alberto Bencivenni22-Jul-03 21:39
Alberto Bencivenni22-Jul-03 21:39 
GeneralRe: Multithreading Pin
Joe Woodbury23-Jul-03 6:27
professionalJoe Woodbury23-Jul-03 6:27 
QuestionHow to read data in excel file Pin
Hoang Dung21-Jul-03 18:38
Hoang Dung21-Jul-03 18:38 
AnswerRe: How to read data in excel file Pin
Mazdak21-Jul-03 20:01
Mazdak21-Jul-03 20:01 
AnswerRe: How to read data in excel file Pin
Kannan Kalyanaraman21-Jul-03 20:14
Kannan Kalyanaraman21-Jul-03 20:14 
GeneralRe: How to read data in excel file Pin
Ista24-Jul-03 5:57
Ista24-Jul-03 5:57 
AnswerRe: How to read data in excel file Pin
Ista24-Jul-03 6:48
Ista24-Jul-03 6:48 
QuestionHow do i find a type of the object Pin
Ista21-Jul-03 17:03
Ista21-Jul-03 17:03 
AnswerRe: How do i find a type of the object Pin
Rocky Moore21-Jul-03 17:12
Rocky Moore21-Jul-03 17:12 
AnswerRe: How do i find a type of the object Pin
Meysam Mahfouzi22-Jul-03 0:41
Meysam Mahfouzi22-Jul-03 0:41 
AnswerRe: How do i find a type of the object Pin
LongRange.Shooter22-Jul-03 5:02
LongRange.Shooter22-Jul-03 5:02 
GeneralRe: How do i find a type of the object Pin
Ista22-Jul-03 8:16
Ista22-Jul-03 8:16 
GeneralRe: How do i find a type of the object Pin
LongRange.Shooter23-Jul-03 5:07
LongRange.Shooter23-Jul-03 5:07 

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.