flat assembler
Message board for the users of flat assembler.

Index > Windows > Select 1 core from 2/4/8 cores

Author
Thread Post new topic Reply to topic
ass0



Joined: 31 Dec 2008
Posts: 518
Location: ( . Y . )
ass0 05 Jul 2010, 10:05
Is it posible to select a core from a multicore cpu?
Consider the following scenario:

(# prefix means core)
(t prefix means task)
(| means timeline)
(· means space xD)

#1··········#2
|·············|
t1············|
t2···········t3
t4············|
|············t5

I know this seems a simple multithreading program, but i wonder if it's possible to select a (physical) core to achieve a task in kernel or even in user mode.

Of course i'm googlin,yahooin but i didn't found nothing (not even at msdn.microsoft.com =p).

_________________
Image
Nombre: Aquiles Castro.
Location2: about:robots
Post 05 Jul 2010, 10:05
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20482
Location: In your JS exploiting you and your system
revolution 05 Jul 2010, 10:10
SetThreadAffinityMask
SetProcessAffinityMask
Post 05 Jul 2010, 10:10
View user's profile Send private message Visit poster's website Reply with quote
ass0



Joined: 31 Dec 2008
Posts: 518
Location: ( . Y . )
ass0 05 Jul 2010, 10:14
WOW!!, thank you revolution, you rock my world. xD

_________________
Image
Nombre: Aquiles Castro.
Location2: about:robots
Post 05 Jul 2010, 10:14
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 05 Jul 2010, 11:14
That's what he/she/it said! Laughing
Post 05 Jul 2010, 11:14
View user's profile Send private message Reply with quote
ass0



Joined: 31 Dec 2008
Posts: 518
Location: ( . Y . )
ass0 05 Jul 2010, 11:33
wut 'r u talkin' about?
you rock my world == you are awesome!

_________________
Image
Nombre: Aquiles Castro.
Location2: about:robots
Post 05 Jul 2010, 11:33
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 05 Jul 2010, 11:38
It has many meanings.
Post 05 Jul 2010, 11:38
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20482
Location: In your JS exploiting you and your system
revolution 05 Jul 2010, 13:46
I will just assume it has the least derogatory and most respectful meaning.

ass0: You're welcome. But I would have thought that ( . Y . ) rocks your world. Wink
Post 05 Jul 2010, 13:46
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 05 Jul 2010, 22:01

KeSetSystemAffinityThread(Ex)
KeRevertToUserAffinityThread(Ex)

http://msdn.microsoft.com/en-us/library/ff553267%28VS.85%29.aspx
Both work very well without any problems. (XP Pro sp3 32bits)

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 05 Jul 2010, 22:01
View user's profile Send private message Send e-mail Reply with quote
ass0



Joined: 31 Dec 2008
Posts: 518
Location: ( . Y . )
ass0 05 Jul 2010, 23:28
Thank you ouadji, you rock my world too. xD

_________________
Image
Nombre: Aquiles Castro.
Location2: about:robots
Post 05 Jul 2010, 23:28
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.