Results 1 to 3 of 3
- 02-03-2012, 04:32 PM #1
Member
- Join Date
- Feb 2012
- Posts
- 9
- Rep Power
- 0
increasing or decreasing no of cores/processor in java code
am trying to measure the performance of sequential java code and parallel one with the same functionality by varying the no. cores or processors.
I just know how to get the no of cores in java code and I perfectly succeed using it in for the parallel one.
But I just wander if I can check the performance of the sequential one by varying the no of cores or processors.
Is there any way that can decrease or increase the no of cores assigned to the java program? I prefer if I can use some code to do so.
- 02-03-2012, 05:08 PM #2
Re: increasing or decreasing no of cores/processor in java code
AFAIK this can't be done from Java. But if you're on a Windows machine, you can set the number of cores you want java.exe to use from the Task Manager. (Right click -> set Affinity...)
Moving this to 'Threads and Synchronization'
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 02-03-2012, 08:34 PM #3
Member
- Join Date
- Feb 2012
- Posts
- 9
- Rep Power
- 0
Similar Threads
-
Threads and cores
By aburnett397 in forum Threads and SynchronizationReplies: 1Last Post: 09-07-2011, 03:36 AM -
Increasing/decreasing an int variable with boundrys
By david522 in forum New To JavaReplies: 5Last Post: 05-12-2011, 12:04 AM -
Increasing Java heap space
By davetheant in forum New To JavaReplies: 2Last Post: 02-03-2011, 02:24 AM -
Java Picture Processor: PGM files and Arrays
By snow_mac in forum New To JavaReplies: 0Last Post: 11-30-2010, 01:16 PM -
How to band threads with cup cores?
By young in forum Threads and SynchronizationReplies: 4Last Post: 04-06-2010, 01:39 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks