Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Do we need to schedule threads to diff processors? Pin
TnTinMn16-Sep-13 17:15
TnTinMn16-Sep-13 17:15 
Quote:
You can't force a thread onto an processor,

I'm not claiming any expertise on this subject and have no idea why one would wish to do this.

But couldn't you iterate through Process.GetCurrentProcess.Threads seeking the ProcessThread which has the ID equal to the ID returned from the API function GetCurrentThreadId (called on the thread in question).

Once you have the needed ProcessThread, you could set its processor affinity[^] property.
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 
GeneralRe: showing form from bottom wth timer Pin
eng.iris16-Sep-13 9:43
eng.iris16-Sep-13 9:43 

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.