How do I programmatically set MATLAB's priority in an engine application?
이전 댓글 표시
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Call MATLAB from C에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!