NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: tejaswi2195 on October 11, 2013, 04:23:57 PM

Title: Write a ALP to define two tasks and execute them on different CPU cores.
Post by: tejaswi2195 on October 11, 2013, 04:23:57 PM
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  :(
Title: Re: Write a ALP to define two tasks and execute them on different CPU cores.
Post by: Frank Kotler 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

Title: Re: Write a ALP to define two tasks and execute them on different CPU cores.
Post by: tejaswi2195 on October 12, 2013, 06:41:22 AM
thanks for the link.. i will try and let u know if i succeed ..