Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How to specify the number of processors (cpus) to use in a round of execution in a multicore environment

  1. #1
    Junior Member atgoodprogram's Avatar
    Join Date
    Jan 2013
    Posts
    27
    My Mood
    Amazed
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Lightbulb How to specify the number of processors (cpus) to use in a round of execution in a multicore environment

    Hello, I already know how to use the runtime method to get the number of available processors but what I need is how to control the number of processors to be used during each round of test or execution in a multicore environment.
    Put differently, I want to experiment on one node of a multicore computer with 12processors, but I need to be able to specify at each round of the experiment (execution) how many processors should execute my threaded application. I need to be able to specify the use of 2 cpus, 4 cpus, 6 cpus,8 cpus, 10 cpus and 12 cpus.
    Any suggestion will be welcome
    Thanks


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,355
    Thanks
    182
    Thanked 833 Times in 776 Posts
    Blog Entries
    5

    Default Re: How to specify the number of processors (cpus) to use in a round of execution in a multicore environment

    Duplicate of How to specify the number of processors to use in each round of execution in a multicore environment

    Thread locked

Similar Threads

  1. [SOLVED] How to round to 2 decimal places in a dialog box
    By JohnEliot in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 3rd, 2013, 07:39 PM
  2. [SOLVED] How to make Math.round() round to the nearest .1?
    By bdennin in forum What's Wrong With My Code?
    Replies: 4
    Last Post: February 2nd, 2013, 07:23 PM
  3. Newbie all round
    By camillejb in forum Member Introductions
    Replies: 1
    Last Post: June 25th, 2012, 06:08 PM
  4. Replies: 6
    Last Post: December 9th, 2011, 05:53 PM
  5. take a double, then round decimal to either to .0 or .5 only
    By MaxBodine in forum What's Wrong With My Code?
    Replies: 3
    Last Post: September 30th, 2011, 04:35 PM

Tags for this Thread