Author Topic: Write a ALP to define two tasks and execute them on different CPU cores.  (Read 6378 times)

Offline tejaswi2195

  • Jr. Member
  • *
  • Posts: 9
can anyone tell me the basic instructions used to perform tasks on different cores ..
please reply as soon as possible...
i googled but could not find anything useful  :(

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Write a ALP to define two tasks and execute them on different CPU cores.
« Reply #1 on: October 11, 2013, 07:16:40 PM »
Encryptor256 has posted some Windows C code here:
http://forum.nasm.us/index.php?topic=1725.0
You could convert it to "a ALP" by pushing the parameters and calling the APIs, i that's what you want. (or putting the parameters in registers, for 64-bit code)

I suspect the "low level" answer would best be found in the Intel and/or AMD manuals. I don't know the answer - I just graduated to two cores recently. I think it's a pretty complicated question. Above my pay grade.  How would I know if I'd succeeded in running my tasks on separate cores? Feel free to post anything you learn!

Best,
Frank


Offline tejaswi2195

  • Jr. Member
  • *
  • Posts: 9
Re: Write a ALP to define two tasks and execute them on different CPU cores.
« Reply #2 on: October 12, 2013, 06:41:22 AM »
thanks for the link.. i will try and let u know if i succeed ..