Java-Thread-Affinity icon indicating copy to clipboard operation
Java-Thread-Affinity copied to clipboard

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

Open saoj opened this issue 13 years ago • 1 comments

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

saoj avatar Apr 16 '12 20:04 saoj

I will have a look tomorrow.

On 16 April 2012 21:31, Sergio Oliveira Jr. [email protected] 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

peter-lawrey avatar Apr 16 '12 21:04 peter-lawrey