How do I programmatically set MATLAB's priority in an engine application?
Show older comments
How do I programmatically set MATLAB's priority in an engine application?
I am calling multiptle sessions of MATLAB from a C++ routine using the engSingleUser call to invoke each application having its own engine. I would like to have one of the engines run at a lower Windows Priority. I can do this externally from the CTL-ALT-DEL task list with no problem. I also know that there is a C language routine to cause the thread / process priority to be re-set which seems to imply that again resetting the priority should not be a problem.
However, the call to the engSingleUser passes back a handle to the engine, and not a Windows Process ID (maybe they are one and the same, but the documentation does not make it obvious). Is there any way that I can re-set the priority of a MATLAB session from a C language call? It is not obvious to me since the process ID seems to be hidden from me.
Accepted Answer
More Answers (0)
Categories
Find more on Embedded Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!