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

(process) Can't set priority of native processes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-libs
    • x86
    • windows_xp



      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)
      ======================================================================

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

              Created:
              Updated:
              Imported:
              Indexed: