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

(process) Can't set priority of native processes

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 1.4.2
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description



      Name: rmT116609 Date: 07/15/2003


      A DESCRIPTION OF THE REQUEST :

      The priority of native processes that have been started with Runtime.exec() can not be modified through the Java API.

      It would be helpful if there was a method Process.setPriority(int) similar to Thread.setPriority().

      JUSTIFICATION :

      Some native processes are CPU hogs. They tend to consume lots of CPU time and leave very little to the Java GUI.

      On Windows, it is possible to control the priority of processes through JNI calls. Similar workarounds are probably possible for UNIXes.

      However, it would be much easier if there was a method in the Java API.
      (Incident Review ID: 189858)
      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: