Skip to content

cross process Affinity #44

@ariksher-nex

Description

@ariksher-nex

Hi,

I tried to use the AffinityLock.acquireCore(). it looks good and seems that it does lock specific Core to a thread. however, when I run 2 (similar) processes on same machine it looks like the seconds process locks on same Core, as the first app. here are the dumps of 2 apps (I run on my desktop, only 4 cores):

dump of App 1:
0: General use CPU
1: Reserved for this application
2: Thread[name1,5,main] alive=true
3: General use CPU

dump of App 2:
0: General use CPU
1: Reserved for this application
2: Thread[name3,5,main] alive=true
3: General use CPU

is that on purpose?
I would assume that once core is locked, than other apps won't be able to lock the same core.

Thanks,
Arik

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions