Click here to Skip to main content
15,898,689 members
Home / Discussions / C#
   

C#

 
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 
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 
I don't know. The best answer I can give is: write it to not "know" about the number of processors. This is the simplest code you could write: you're going to let the OS do all the scheduling work. After all the OS is going to be context-switching under you anyway to service the network, do file IO, do whatever.

If the performance isn't all it's cracked up to be, now add some moderately complex code to identify how many processors there are, how to split up the total work between processors, etc. Run it and profile. Tweak. Run it and profile. Rinse and repeat. I would doubt that you'd make much difference for the amount of work it will take you. I would hazard a guess that improving the algorithm that's doing the work will get you more bang for your coding buck.

The threadpool is designed to obviate the need to continually create OS threads, an expensive process. That's all. It makes no difference to the speed of execution of code in the thread.

References, wow. Not off the top of my head, no, sorry. Certainly I don't know of any in the C#/.NET world.

Cheers, Julian
Program Manager, C#

This posting is provided "AS IS" with no warranties, and confers no rights.
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 
GeneralRe: How do i find a type of the object Pin
Ista24-Jul-03 6:05
Ista24-Jul-03 6:05 
GeneralBinding a domainUpDown control Pin
Ista21-Jul-03 17:02
Ista21-Jul-03 17:02 

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.