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

        Activity

        Hide
        martin Martin Buchholz added a comment -
        BT2:EVALUATION

        Yes, the ability to control the priority of subprocesses is useful.
        Java has traditionally not supported this kind of control over
        subprocesses. More access to the environment is being made available,
        as long as it can be done in a portable manner. Although most operating
        systems have a concept of process priority, the details of the methods
        used to adjust it differ.

        It is too late to design this for Tiger. This issue should be
        re-examined for the next major release thereafter.
        ###@###.### 2003-08-12
        Show
        martin Martin Buchholz added a comment - BT2:EVALUATION Yes, the ability to control the priority of subprocesses is useful. Java has traditionally not supported this kind of control over subprocesses. More access to the environment is being made available, as long as it can be done in a portable manner. Although most operating systems have a concept of process priority, the details of the methods used to adjust it differ. It is too late to design this for Tiger. This issue should be re-examined for the next major release thereafter. ###@###.### 2003-08-12

          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: