Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Zeroes1 opened this issue Mar 5, 2024 · 6 comments
Closed

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

Zeroes1 opened this issue Mar 5, 2024 · 6 comments
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@Zeroes1
Copy link

Zeroes1 commented 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)

@Zeroes1 Zeroes1 added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Mar 5, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Mar 5, 2024
@zadjii-msft
Copy link
Member

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...

@pojith
Copy link

pojith commented 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?

@Zeroes1
Copy link
Author

Zeroes1 commented Mar 6, 2024

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

@pojith
Copy link

pojith commented Mar 6, 2024

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

@carlos-zamora
Copy link
Member

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

@carlos-zamora carlos-zamora closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2024
@pojith
Copy link

pojith commented Mar 7, 2024

ko sir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

4 participants