peter-lawrey / Java-Thread-Affinity

Control thread affinity for Java
379 stars 77 forks source link

Simple recipe for a simple 2-thread 2-processor scenario? #32

Open saoj opened 12 years ago

saoj commented 12 years ago

Hi Peter,

It would be nice to have some recipes on how to use your library. For example: I have two threads and two physical processors. I want to assign each one to its own physical processor. How do I do that? Now I want to make sure they always run in the same physical processor. How do I do that?

I want to test my 2-threaded (consumer-producer) queue under those two very distinct situations. The queue is here: http://mentaqueue.soliveirajr.com

It would be nice to have the "basic of the basic" as recipes in the wiki. If you show me how to do it I can place it in the wiki to help out. Or you can answer my question by updating the wiki.

Thanks!!!!

-Sergio

peter-lawrey commented 12 years ago

I will have a look tomorrow.

On 16 April 2012 21:31, Sergio Oliveira Jr. reply@reply.github.com wrote:

Hi Peter,

It would be nice to have some recipes on how to use your library. For example: I have two threads and two physical processors. I want to assign each one to its own physical processor. How do I do that? Now I want to make sure they always run in the same physical processor. How do I do that?

I want to test my 2-threaded (consumer-producer) queue under those two very distinct situations. The queue is here: http://mentaqueue.soliveirajr.com

It would be nice to have the "basic of the basic" as recipes in the wiki. If you show me how to do it I can place it in the wiki to help out. Or you can answer my question by updating the wiki.

Thanks!!!!

-Sergio


Reply to this email directly or view it on GitHub: https://github.com/peter-lawrey/Java-Thread-Affinity/issues/32