Results 1 to 2 of 2
  1. #1
    piyushr999 is offline Member
    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Question How to find no. of cores(Processors) by using java???

    Hello,

    If my computer is connected in LAN with another computer. and now I want to find the total no. of cores( Processors) of both the computers.

    So help me to find total no. of cores ??

  2. #2
    kaydell2 is offline Senior Member
    Join Date
    Dec 2012
    Posts
    106
    Rep Power
    0

    Default Re: How to find no. of cores(Processors) by using java???

    When I run the following code on my computer, it correctly tells me how many processors I have:

    Java Code:
    Runtime.getRuntime().availableProcessors()
    If my computer is connected in LAN with another computer. and now I want to find the total no. of cores( Processors) of both the computers.
    I'm not sure what you mean by your computer is connected in LAN with another computer. Connected with what technology? RMI?

Similar Threads

  1. Simulation network of processors in java
    By w0st in forum New To Java
    Replies: 1
    Last Post: 05-15-2012, 12:59 AM
  2. increasing or decreasing no of cores/processor in java code
    By KidAget in forum Threads and Synchronization
    Replies: 2
    Last Post: 02-03-2012, 08:34 PM
  3. Threads and cores
    By aburnett397 in forum Threads and Synchronization
    Replies: 1
    Last Post: 09-07-2011, 03:36 AM
  4. Running multiple threads on multiple CPU cores?
    By Dosta in forum Threads and Synchronization
    Replies: 2
    Last Post: 09-19-2010, 03:48 PM
  5. How to band threads with cup cores?
    By young in forum Threads and Synchronization
    Replies: 4
    Last Post: 04-06-2010, 01:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •