# MATLAB: Is it possible to call a matlab generated shared library multiple times in a program

shared library

When I use the recommended method
      mclRunMain((mclMainFcnType)run_main, 0, NULL);
it always exits the program immediately. So how can i set this up to call the shared library function several times without exiting?