Click here to Skip to main content
16,004,927 members
Home / Discussions / C#
   

C#

 
QuestionFast image render Pin
Michal Stehlik24-Mar-09 23:50
Michal Stehlik24-Mar-09 23:50 
AnswerRe: Fast image render Pin
benjymous25-Mar-09 0:20
benjymous25-Mar-09 0:20 
GeneralRe: Fast image render Pin
Michal Stehlik25-Mar-09 1:28
Michal Stehlik25-Mar-09 1:28 
AnswerRe: Fast image render Pin
Luc Pattyn25-Mar-09 3:04
sitebuilderLuc Pattyn25-Mar-09 3:04 
GeneralGlobalization/Localization Pin
mahesvs24-Mar-09 23:40
mahesvs24-Mar-09 23:40 
GeneralRe: Globalization/Localization Pin
Henry Minute25-Mar-09 14:48
Henry Minute25-Mar-09 14:48 
QuestionManualResetEvent and multimedia timer Pin
invader8224-Mar-09 23:39
invader8224-Mar-09 23:39 
AnswerRe: ManualResetEvent and multimedia timer Pin
Nicholas Butler25-Mar-09 0:15
sitebuilderNicholas Butler25-Mar-09 0:15 
You should be seeing a delay in the order of 10x10-6s because you are incurring a context switch. This is roughly how long the windows takes to schedule a thread and resume running it on a CPU. If you are seeing 10x10-3s, this is a quantum and will occur if you are running too many threads for the number of cores in your machine.

The only way to speed this up is not to put your thread in a wait state in the first place. If the delay is really too long, you can try spinning the thread instead of using a wait. This of course has one big drawback: you will be using one core all the time, most of it wasted.

Nick

----------------------------------
Be excellent to each other Smile | :)

QuestionFind a class with its name ? Pin
Mohammad Dayyan24-Mar-09 23:05
Mohammad Dayyan24-Mar-09 23:05 
AnswerRe: Find a class with its name ? Pin
King Julien25-Mar-09 0:00
King Julien25-Mar-09 0:00 
GeneralRe: Find a class with its name ? Pin
Mohammad Dayyan25-Mar-09 6:39
Mohammad Dayyan25-Mar-09 6:39 
AnswerRe: Find a class with its name ? Pin
King Julien25-Mar-09 19:04
King Julien25-Mar-09 19:04 
QuestionImages Pin
DaphneS9124-Mar-09 23:03
DaphneS9124-Mar-09 23:03 
AnswerRe: Images Pin
benjymous25-Mar-09 0:55
benjymous25-Mar-09 0:55 
AnswerRe: Images Pin
Xmen Real 25-Mar-09 0:57
professional Xmen Real 25-Mar-09 0:57 
QuestionBHO PDF problem? Pin
svt gdwl24-Mar-09 23:01
svt gdwl24-Mar-09 23:01 
QuestionTwo interfaces with same function name Pin
.NET- India 24-Mar-09 22:57
.NET- India 24-Mar-09 22:57 
AnswerRe: Two interfaces with same function name Pin
Deresen25-Mar-09 0:23
Deresen25-Mar-09 0:23 
AnswerRe: Two interfaces with same function name Pin
ABitSmart25-Mar-09 0:30
ABitSmart25-Mar-09 0:30 
AnswerRe: Two interfaces with same function name Pin
DaveyM6925-Mar-09 0:41
professionalDaveyM6925-Mar-09 0:41 
GeneralRe: Two interfaces with same function name Pin
.NET- India 25-Mar-09 1:55
.NET- India 25-Mar-09 1:55 
GeneralRe: Two interfaces with same function name [modified] Pin
DaveyM6925-Mar-09 2:24
professionalDaveyM6925-Mar-09 2:24 
GeneralRe: Two interfaces with same function name Pin
.NET- India 25-Mar-09 2:35
.NET- India 25-Mar-09 2:35 
Generallazy Pin
Luc Pattyn25-Mar-09 3:13
sitebuilderLuc Pattyn25-Mar-09 3:13 
GeneralRe: Two interfaces with same function name Pin
DaveyM6925-Mar-09 3:22
professionalDaveyM6925-Mar-09 3:22 

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.