Different threads using different core of processor
Madhumitha Baskaran
Ranch Hand
Joined: Feb 27, 2010
Posts: 56
posted
0
Hi,
I have a doubt using threads. If I create a multithreaded program, will it be possible for me to let every thread to use one core separately and work simultaneously?
Please guide.
Thanks,
Madhu
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2329
posted
2
That's up to the JVM and OS; your code can't influence that.
Madhumitha Baskaran
Ranch Hand
Joined: Feb 27, 2010
Posts: 56
posted
0
I am trying to implement Mapreduce. How could I make sure that performance is best by using threads?
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2329
posted
0
The best way is probably to use an existing Mapreduce implementation that is tuned for concurrency already. That is not an easy thing to get right.