Hi all, I'm doing a project on an application which I'm suppose to improve efficiency on it, by running it on multi-core. which means I am suppose to segment the program and run the program in multiple core.

I had tried to implement a matrix multiplication java program, and executing it in threads. However what I'm trying to find out is if I could control the numbers of cores involved in the processor, as I need to do a benchmark of how efficient it would be, by using different numbers of cores for computation.