Results 1 to 2 of 2
  1. #1
    DrRufus is offline Member
    Join Date
    Aug 2007
    Posts
    1
    Rep Power
    0

    Default Assigning Threads on Multiprocessor?

    Hello,
    I am converting a single threaded application into a multithreaded one in hopes of concurrently executing sections of the code on a multiprocessor. I've created threads for the sections that should be executed on the different processors but I don't think multiple processors are being assigned to the code chunks. The multiprocessor system is Unix based and I use the generic "java Main" command to execute the class with main(). Is there a special command that I have to use in order to assign the threads to the multiprocessors?
    Thanks in advance!

  2. #2
    levent Guest

    Default

    As far as i know, the assigning is done automatically in JVM and there is no command for that. You can check Thread class javadoc and documentation of java command with "java -help".

Similar Threads

  1. How to use Java threads
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-09-2008, 07:30 PM
  2. applets & threads
    By willemjav in forum Java Applets
    Replies: 2
    Last Post: 04-04-2008, 07:59 AM
  3. Using threads
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-11-2007, 11:25 AM
  4. Threads
    By one198 in forum Threads and Synchronization
    Replies: 1
    Last Post: 11-20-2007, 07:15 PM
  5. Replies: 1
    Last Post: 08-07-2007, 12:10 AM

Posting Permissions

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