Custom priority for process openconsole.exe and profile app #21352

Closed
opened 2026-01-31 07:42:06 +00:00 by claunia · 6 comments
Owner

Originally created by @Zeroes1 on GitHub (Mar 5, 2024).

Wish:
I want new option - set to my profile app and openconsole.exe (child of windowsterminal.exe) ran with my priority (not
normal, for example - high)

why need? when run high load cpu processes
I can't normal work in console mode app (for example Far manager)

Originally created by @Zeroes1 on GitHub (Mar 5, 2024). Wish: I want new option - set to my profile app and openconsole.exe (child of windowsterminal.exe) ran with my priority (not normal, for example - high) why need? when run high load cpu processes I can't normal work in console mode app (for example Far manager)
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-Fix labels 2026-01-31 07:42:06 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Mar 6, 2024):

I could have swore we had a dupe for this somewhere on the backlog... but I can't seem to find it now.

There's gotta be a thread somewhere about running all of the processes in a pane in a job object...

@zadjii-msft commented on GitHub (Mar 6, 2024): I could have _swore_ we had a dupe for this somewhere on the backlog... but I can't seem to find it now. There's gotta be a thread somewhere about running all of the processes in a pane in a job object...
Author
Owner

@pojith commented on GitHub (Mar 6, 2024):

It sounds like you want to create a new option in your profile app that sets the priority of the openconsole.exe process (a child of windowsterminal.exe) to a higher priority, such as "high." This would help improve the performance of console mode applications like Far Manager when there is a high load on the CPU.

Here is a basic outline of the steps you might take to implement this:

  1. Identify openconsole.exe: Make sure you have the correct process name (openconsole.exe) and understand its relationship with windowsterminal.exe.

  2. Change Process Priority: Use a method to change the priority of the process. You can use a programming language like C# or Python to interact with the Windows API and set the priority.

    For example, in C# using System.Diagnostics:

    using System.Diagnostics;
    
    class Program
    {
        static void Main()
        {
            Process[] processes = Process.GetProcessesByName("openconsole");
    
            foreach (Process process in processes)
            {
                // Set the priority to High
                process.PriorityClass = ProcessPriorityClass.High;
            }
        }
    }
    

    Please note that modifying process priority should be done carefully, as setting it too high might affect the overall system performance.

  3. Integrate with your Profile App: Add an option or button in your profile app's interface to trigger the process priority change. This might involve executing a script or calling a function that changes the priority when the user selects this option.

  4. Testing: Thoroughly test the changes to ensure that the priority adjustment works as expected and doesn't negatively impact the system's stability.

Remember to check your application's licensing and ensure that modifying process priorities is within the acceptable use of your tools. Additionally, users should be informed about the potential consequences of modifying process priorities and use such features responsibly.

its it work?

@pojith commented on GitHub (Mar 6, 2024): It sounds like you want to create a new option in your profile app that sets the priority of the `openconsole.exe` process (a child of `windowsterminal.exe`) to a higher priority, such as "high." This would help improve the performance of console mode applications like Far Manager when there is a high load on the CPU. Here is a basic outline of the steps you might take to implement this: 1. **Identify `openconsole.exe`:** Make sure you have the correct process name (`openconsole.exe`) and understand its relationship with `windowsterminal.exe`. 2. **Change Process Priority:** Use a method to change the priority of the process. You can use a programming language like C# or Python to interact with the Windows API and set the priority. For example, in C# using `System.Diagnostics`: ```csharp using System.Diagnostics; class Program { static void Main() { Process[] processes = Process.GetProcessesByName("openconsole"); foreach (Process process in processes) { // Set the priority to High process.PriorityClass = ProcessPriorityClass.High; } } } ``` Please note that modifying process priority should be done carefully, as setting it too high might affect the overall system performance. 3. **Integrate with your Profile App:** Add an option or button in your profile app's interface to trigger the process priority change. This might involve executing a script or calling a function that changes the priority when the user selects this option. 4. **Testing:** Thoroughly test the changes to ensure that the priority adjustment works as expected and doesn't negatively impact the system's stability. Remember to check your application's licensing and ensure that modifying process priorities is within the acceptable use of your tools. Additionally, users should be informed about the potential consequences of modifying process priorities and use such features responsibly. its it work?
Author
Owner

@Zeroes1 commented on GitHub (Mar 6, 2024):

it's AI help? :) I think devellopers of know how to this make....

@Zeroes1 commented on GitHub (Mar 6, 2024): it's AI help? :) I think devellopers of know how to this make....
Author
Owner

@pojith commented on GitHub (Mar 6, 2024):

yes bro i don't know how to solve this problem .
i just begginer to this typenew kind of the issues

@pojith commented on GitHub (Mar 6, 2024): yes bro i don't know how to solve this problem . i just begginer to this typenew kind of the issues
Author
Owner

@carlos-zamora commented on GitHub (Mar 6, 2024):

Thanks for the request. This work is out of scope for us, thus closing.

@carlos-zamora commented on GitHub (Mar 6, 2024): Thanks for the request. This work is out of scope for us, thus closing.
Author
Owner

@pojith commented on GitHub (Mar 7, 2024):

ko sir

@pojith commented on GitHub (Mar 7, 2024): ko sir
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21352