Re: [Gems-users] Thread migration in Gems


Date: Thu, 6 Aug 2009 11:30:08 -0500
From: Dan Gibson <degibson@xxxxxxxx>
Subject: Re: [Gems-users] Thread migration in Gems
If your work relies on having system-level effects of migration, I recommend you have a second thread in your application explicitly bind to cpu0 while your 'main' thread is doing work. You can even semi-synchronize the event with a CV if you so choose.

I would NOT suggest modifying CPU registers directly.

Regards,
Dan

On Thu, Aug 6, 2009 at 11:24 AM, Jianghao Guo <guojh.uc@xxxxxxxxx> wrote:

Hi Gems users

 

I want to migrate my test program from core 0 to core 1 in a x86 dual core system.

Can I do this by changing the CPU context directly?

For example, stall these two CPUs -> read all registers values from core 0 -> write these values into core 1 -> unstall core1  


_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.





--
http://www.cs.wisc.edu/~gibson [esc]:wq!
[← Prev in Thread] Current Thread [Next in Thread→]