Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8187404

Enable setting the process priority in ProcessBuilder

XMLWordPrintable

      A DESCRIPTION OF THE REQUEST :
      I copied all the files from a backup hard disk to Blu-ray discs because the hard disk was full; now I have to re-verify the Blu-ray discs using FC.exe. A Java program checks the FC output to be sure all files verified. It would be better, faster, and more efficient if the Java program started FC, but FC completes in less than half the time if its priority is set to Realtime than if it is left at Normal priority. However, there is no way to set the priority of a running program in ProcessBuilder, or in Java, for that matter.

      There is a similar RFE here (JDK-4890728), filed in 2003, but the Java people ignored it then.

      JUSTIFICATION :
      It takes about 1/2 hour to verify a Blu-ray disc if FC is run at Normal priority, and only about 13 minutes if it is run at Realtime priority. There are only 1440 minutes per day.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The ability to set the priority of a created process in ProcessBuilder.
      ACTUAL -
      There is no way to set the priority of a process begun by ProcessBuilder.

      CUSTOMER SUBMITTED WORKAROUND :
      Run FC.exe at the Windows Command Prompt, then quick change its priority in Task Manager to Realtime.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: