Click here to Skip to main content
15,905,867 members
Home / Discussions / C#
   

C#

 
AnswerRe: Calculate the date of the previous and next 2 Wednesdays Pin
PIEBALDconsult16-Sep-13 13:59
mvePIEBALDconsult16-Sep-13 13:59 
GeneralRe: Calculate the date of the previous and next 2 Wednesdays Pin
Richard MacCutchan16-Sep-13 20:43
mveRichard MacCutchan16-Sep-13 20:43 
GeneralRe: Calculate the date of the previous and next 2 Wednesdays Pin
Member 416962816-Sep-13 22:51
Member 416962816-Sep-13 22:51 
QuestionDo we need to schedule threads to diff processors? Pin
Srinivas P N V16-Sep-13 2:10
Srinivas P N V16-Sep-13 2:10 
AnswerRe: Do we need to schedule threads to diff processors? Pin
Eddy Vluggen16-Sep-13 2:59
professionalEddy Vluggen16-Sep-13 2:59 
GeneralRe: Do we need to schedule threads to diff processors? Pin
Dholakiya Ankit18-Sep-13 20:46
Dholakiya Ankit18-Sep-13 20:46 
AnswerRe: Do we need to schedule threads to diff processors? Pin
Simon_Whale16-Sep-13 3:38
Simon_Whale16-Sep-13 3:38 
AnswerRe: Do we need to schedule threads to diff processors? Pin
OriginalGriff16-Sep-13 4:07
mveOriginalGriff16-Sep-13 4:07 
One logical processor can run one thread at a time - and this includes all the of system threads, as well as all the application threads in the machine - not just yours. So at any one time, four threads can be running at the same time, and one or more of these may be one of your 25. The system is at liberty to start threads on any processor available to it at the time it wants to switch threads - either because a thread has paused itself, ot run out of time slice and must wait to give other threads a chance.

You can't force a thread onto an processor, or even force a thread to run without interruption from beginning to end. So all 25 thread could run on the same processor, one after another, or they could be spread around - you have no influence over that, and cannot even tell which processor you are running on: or even if it was the same processor a microsecond ago!

Do be aware that if you start a number of threads to speed things up, you may infact slow things down due to locking and thread switching overheads - particularly if there aren't enough physical processors to run them all at the same time.
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre.
Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

GeneralRe: Do we need to schedule threads to diff processors? Pin
TnTinMn16-Sep-13 17:15
TnTinMn16-Sep-13 17:15 
GeneralRe: Do we need to schedule threads to diff processors? Pin
Eddy Vluggen18-Sep-13 6:48
professionalEddy Vluggen18-Sep-13 6:48 
QuestionMessage Closed Pin
15-Sep-13 20:44
xuantruongbn15-Sep-13 20:44 
AnswerRe: CreateKey Pin
Midnight Ahri15-Sep-13 21:15
Midnight Ahri15-Sep-13 21:15 
AnswerRe: CreateKey Pin
Dave Kreskowiak16-Sep-13 1:55
mveDave Kreskowiak16-Sep-13 1:55 
Questionshowing form from bottom wth timer Pin
eng.iris15-Sep-13 15:32
eng.iris15-Sep-13 15:32 
AnswerRe: showing form from bottom wth timer Pin
Midnight Ahri15-Sep-13 16:58
Midnight Ahri15-Sep-13 16:58 
GeneralRe: showing form from bottom wth timer Pin
eng.iris15-Sep-13 17:12
eng.iris15-Sep-13 17:12 
AnswerRe: showing form from bottom wth timer Pin
Midnight Ahri15-Sep-13 18:11
Midnight Ahri15-Sep-13 18:11 
GeneralRe: showing form from bottom wth timer Pin
eng.iris16-Sep-13 2:26
eng.iris16-Sep-13 2:26 
AnswerRe: showing form from bottom wth timer Pin
Kamran Ayati15-Sep-13 21:04
Kamran Ayati15-Sep-13 21:04 
GeneralRe: showing form from bottom wth timer Pin
eng.iris16-Sep-13 2:20
eng.iris16-Sep-13 2:20 
GeneralRe: showing form from bottom wth timer Pin
Kamran Ayati16-Sep-13 2:44
Kamran Ayati16-Sep-13 2:44 
GeneralRe: showing form from bottom wth timer Pin
eng.iris16-Sep-13 9:43
eng.iris16-Sep-13 9:43 
AnswerRe: showing form from bottom wth timer Pin
V.15-Sep-13 23:36
professionalV.15-Sep-13 23:36 
GeneralRe: showing form from bottom wth timer Pin
eng.iris16-Sep-13 2:30
eng.iris16-Sep-13 2:30 
GeneralRe: showing form from bottom wth timer Pin
V.16-Sep-13 2:35
professionalV.16-Sep-13 2:35 

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.