Why multi-thread jobs are created when i complie my signle process code using mcc in linux machine?

I complied my signle process code using MCC(deployment project) to make excutable in linux machine. And i run it, it always make multi thread jobs. I wish it would make multi-thread job. how can i change it? and how could it make multi-thread job? I only use image process toolbox and fprint function in my code.

2 Comments

You seem to be saying that it does make multi-threaded jobs, and that you want it to make multi-threaded jobs. To us it appears that it is doing what you want it to do.
Are you talking about multiple threads at the time it is compiling, or are you talking about multiple threads at execution time?
I don't want make multiple threaded jobs. I just want execute it using only single core. not multi-thread process at execution time. oh, i wrote 'i wish multithread'. sorry. i don't want multi-thread.

Sign in to comment.

 Accepted Answer

Try using the -singleCompThread option with mcc:
>> mcc -R -singleCompThread -m foo.m

2 Comments

I didn't know multithread was default. Now it works as i wished. Thanks, Kaustubha.
Minsu: Glad that helped! Could you please accept my answer if that resolves this question? Thanks!

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!