Programming problems in multi-core

Discussion in 'Technical Support' started by itzitzu, Oct 31, 2008.

  1. itzitzu

    itzitzu

    Joined:
    Oct 27, 2008
    Messages:
    4
    Likes Received:
    0
    Hi!

    I’d like to know if it’s possible forcing a process to be executed in the core I choose. I’ll explain it better: I’m going to have two programs in a dual core and I’d like to send some processes to a core and some other to the other one. I know this can be done with the task manager and in a more durable way with programs like PrioAff or Set Affinity II, but my intention is doing it from the code of the program that I’ll make in C. That is, when I create the processes tell them too in which core they’ll be executed.
    I hope someone knows anything about this topic and can help me in it.

    Thanks in advanced.

    P.S. Sorry for my English and I hope someone can understand me.
     
    itzitzu, Oct 31, 2008
    #1
    1. Advertisements

  2. itzitzu

    itzitzu

    Joined:
    Oct 27, 2008
    Messages:
    4
    Likes Received:
    0
    As I've seen many visits I'll post what I've found:
    There are some functions like SetThreadAffinityMask(), SetProcessAffinityMask(),... that do more ore less what I want.
    I've seen too there is a library called TPL that can be used for these things too. Does anyone know something about it? If it's easier or more difficult..
     
    itzitzu, Nov 5, 2008
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.