Multi-Threading Manager

Use the Multi-Threading Manager (MTM) to view the toolpath processing threads created every time Mastercam generates or regenerates toolpaths that support multi-threaded processing. To display the MTM, click the View tab in Mastercam and toggle Multi-Threading on or off in the Managers group. All existing threads display in the MTM, along with their current states, progress bar indicators, and processing status.

Multi-threading is a special form of program that allows a single program to execute portions of itself concurrently, as opposed to a single-threaded program which executes in a linear mode. A thread is an independent "thread of execution" within a program's code that is managed by the computer's operating system and CPU (central processing unit). Programs that are multi-threaded can process more quickly, and more efficiently. Even more importantly, threads (particularly computational threads) can be queued and processed in background mode, allowing you to start new programs and tasks without waiting for others to finish.

This processing mode allows Mastercam to split the programs that regenerate its largest, most complex toolpaths into smaller and separate program threads that execute simultaneously.

When you activate multi-threaded processing for your Mastercam configuration, whenever you generate/regenerate multi-threaded toolpath types, you can continue working in Mastercam once the toolpaths have been sent to the Multi-Threading Manager dialog box. You do not have to wait for the toolpath regeneration to complete before starting another Mastercam function. Mastercam continues to process these toolpath files "in the background".

If multi-threading is not enabled for your Mastercam configuration, the title bar displays a message informing you that it is disabled. To enable the MTM, go to the Toolpaths page of the System Configuration dialog box. Select Enable Multi-threading on that page to enable the feature. Activate multi-threading for only the current Mastercam session or save the setting to your configuration file.

Notes

  • You can enable/disable multi-threaded toolpath processing as part of your Mastercam configuration (File, Configuration, Toolpaths page). Or, you can use Toggle Multi-Threading, a command available through the Command Finder, to turn it on or off for the current Mastercam session.
  • If you attempt to make changes to the parameters, tools, geometry, or the NCI of a toolpath that is currently processing, a warning will display stating that you cannot change or delete the operation while it is processing.
  • You can still view the parameters or geometry, however the toolpath dialog box will be read-only.
  • The Mastercam Event Logger, located in your system tray during an open Mastercam session, keeps a log of Mastercam error and warning messages, and program processes. This log includes information on the toolpath operations that are multi-threaded and the time it takes to process each thread, as well as the total processing time for an entire multi-threaded regeneration. This information can help you compare the processing time of a set of toolpaths using single-threaded and multi-threaded modes.
  • When processing toolpaths in multi-threaded mode, the Toolpaths Manager displays three icons to indicate that toolpaths are being processed as threads in the Multi-Threading Manager. The icons are green, yellow, or red spools of thread.
    • Green icons indicate threads that are being processed in the MTM.

      Green "Processing threads" icon.

    • Yellow icons are assigned to dependent toolpath threads (for example, rest toolpaths). Dependent threads require data from prior "parent" toolpath threads. Dependent threads cannot begin processing until the MTM completely finishes processing the parent thread (including translation of the binary NCI data).

      Yellow "Dependent toolpath" icon.

    • Red icons indicate that an error occurred during the multi-thread process.

      The red "error occurred" icon.

Learn more