We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
see the following example, first with threads:
import matlab.engine from concurrent.futures import ThreadPoolExecutor def matlab_func(i): eng = matlab.engine.start_matlab() return eng.sqrt(i) with ThreadPoolExecutor() as executor: future = executor.submit(matlab_func, 4.0) print(future.result())
vs the same with Processes:
import matlab.engine from concurrent.futures import ProcessPoolExecutor def matlab_func(i): eng = matlab.engine.start_matlab() return eng.sqrt(i) with ProcessPoolExecutor() as executor: future = executor.submit(matlab_func, 4.0) print(future.result())
I find that the thread example works, but the process example runs forever.
This is with matlabengine version 24.2.2, MATLAB R2024b Update 3 on Linux.
The text was updated successfully, but these errors were encountered:
matlab.engine
multiprocessing.Process
No branches or pull requests
see the following example, first with threads:
vs the same with Processes:
I find that the thread example works, but the process example runs forever.
This is with matlabengine version 24.2.2, MATLAB R2024b Update 3 on Linux.
The text was updated successfully, but these errors were encountered: