> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MultiProcessingParams オブジェクト（IMultiProcessingParams インターフェイス）

> ABBYY FineReader Engine API の MultiProcessingParams オブジェクト（IMultiProcessingParams インターフェイス）— マルチプロセッシングおよびマルチコアのパラメーター（Linux と Windows のみ）。

<Note>
  このオブジェクトは、Linux 版および Windows 版の FRE に実装されています。
</Note>

このオブジェクトでは、マルチプロセッシングと複数の CPU コアの使用に関するパラメーターにアクセスできます。マルチプロセッシングを使用するかどうかを決定する主なパラメーターは、MultiProcessingMode プロパティです。その他のすべてのプロパティは、プロセス数と CPU コア数を制御するもので、MultiProcessingMode プロパティが MPM\_Auto または MPM\_Parallel に設定されている場合にのみ有効です。

<table>
  <thead>
    <tr>
      <th>
        <p>
          <strong>Name</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>型</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>Description</strong>
        </p>
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <p>
          <strong>Application</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/api-reference/engine-object-iengine-interface">Engine</a>
          </strong>

          , <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties">read-only</a>
        </p>
      </td>

      <td>
        <p>
          <strong>Engine</strong> オブジェクトを返します。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="multiprocessingmode" />

          <strong>MultiProcessingMode</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/api-reference/enumerations/multiprocessingmodeenum">
              MultiProcessingModeEnum
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          ABBYY FineReader Engine が複数ページのドキュメントの処理を CPU コアに分散させるかどうかを指定します。実行できるプロセスの最大数は、{" "}
          <strong>RecognitionProcessesCount</strong> プロパティによって制限されます。
        </p>

        <p>デフォルトでは、このプロパティは MPM\_Auto に設定されています。</p>

        <Note>
          Windows の場合、エンジンが{" "}

          <a href="/ja/fine-reader/engine/api-reference/functions/initializeengine-function">
            InitializeEngine
          </a>

          で作成されたときは MPM\_Auto に、{" "}

          <a href="/ja/fine-reader/engine/api-reference/engine-loaders/inprocloader">
            InprocLoader
          </a>

          {" "}

          または{" "}

          <a href="/ja/fine-reader/engine/api-reference/engine-loaders/outprocloader">
            OutprocLoader
          </a>

          を使用するときは MPM\_Sequential に設定されます。
        </Note>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="processpdfinonethread" />

          <strong>ProcessPdfInOneThread</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">VARIANT\_BOOL</a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          このプロパティは非推奨であり、将来のバージョンで削除される予定です。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="recognitionprocessescount" />

          <strong>RecognitionProcessesCount</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">int</a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          同時に実行できるプロセスの最大数を指定します。
        </p>

        <p>
          デフォルトでは、このプロパティは 0 に設定されており、プロセス数は次の値のうち最小のものと等しくなります。
        </p>

        <ul>
          <li>
            利用可能な CPU コアの数

            <ul>
              <li>
                Windows の場合: <strong>UseOnlyPhysicalCPUCores</strong> プロパティの値に応じて、物理 CPU コアまたは論理 CPU コア
              </li>
            </ul>
          </li>

          <li>ライセンスで利用可能な空き CPU コアの数</li>
          <li>処理対象ドキュメントのページ数</li>
        </ul>

        <p>
          このプロパティの値を変更すると、ABBYY FineReader Engine はただちにライセンスの CPU コアを割り当て、{" "}

          <a href="/ja/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/loadmodule-method">
            FineReader Engine Processor
          </a>

          {" "}

          モジュールをロードします。このプロパティの値が 0 の場合、CPU コアの割り当てと FineReader Engine Processor モジュールのロードは必要になった時点で実行されます。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="sharedcpucoresmask" />

          <strong>SharedCPUCoresMask</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">\_\_int64</a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          CPU コアの共有モードで使用できる物理 CPU コアをアフィニティマスクとして指定します。マスクの対象は物理 CPU コアのみで、論理 CPU コアは対象外です。このプロパティは、CPU コアが共有モードで使用されている場合にのみ意味を持ちます (初期化時に{" "}

          <strong>
            <a href="/ja/fine-reader/engine/api-reference/functions/initializeengine-function">InitializeEngine</a>
          </strong>

          {" "}

          関数の <em>IsSharedCPUCoresMode </em>
          パラメータが TRUE に設定されている場合) 。
        </p>

        <p>デフォルトでは、検出されたすべての CPU コアが使用されます。</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="useonlyphysicalcpucores" />

          <strong>UseOnlyPhysicalCPUCores</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">VARIANT\_BOOL</a>
          </strong>
        </p>
      </td>

      <td>
        <Note>このプロパティの値は、Linux 版 ABBYY FineReader Engine では無視されます。</Note>

        <p>
          処理時に物理 CPU コアのみを使用するか、物理 CPU コアと論理 CPU コアの両方を使用するかを指定します。このプロパティは、<strong>RecognitionProcessesCount</strong> プロパティの値が 0 の場合にのみ意味を持ちます。
        </p>

        <p>デフォルトでは、このプロパティは TRUE に設定されており、物理 CPU コアのみが使用されます。</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="customtmpfsrootpath" />

          <strong>CustomTmpfsRootPath</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">BSTR</a>
          </strong>
        </p>
      </td>

      <td>
        <p>tmpfs パスにカスタム値を設定します。</p>

        <p>
          デフォルトの tmpfs パス (例: /dev/shm) の変更は Linux システムでのみサポートされており、パフォーマンスに悪影響を及ぼす可能性があります。

          <br />

          tmpfs の代わりに通常のファイルシステムを使用した場合、プライベートデータがディスク上に残存する可能性があります。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="usecustomtmpfsrootpath" />

          <strong>UseCustomTmpfsRootPath</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">VARIANT\_BOOL</a>
          </strong>
        </p>
      </td>

      <td>
        <p>カスタム tmpfs パスの使用を有効にします。</p>

        <p>
          デフォルトの tmpfs パス (例: /dev/shm) の変更は Linux システムでのみサポートされており、パフォーマンスに悪影響を及ぼす可能性があります。

          <br />

          tmpfs の代わりに通常のファイルシステムを使用した場合、プライベートデータがディスク上に残存する可能性があります。
        </p>
      </td>
    </tr>
  </tbody>
</table>

<div id="related-objects">
  ## 関連オブジェクト
</div>

<Tip>
  <Tip>
    [](/ja/fine-reader/engine/api-reference/engine-object-iengine-interface/properties#multiprocessingparams)[](/ja/fine-reader/engine/api-reference/engine-object-iengine-interface)
  </Tip>
</Tip>

[オブジェクト図](/ja/fine-reader/engine/api-reference/object-diagram)

<div id="samples">
  ## サンプル
</div>

このオブジェクトは、以下のコード サンプルで使用されています。

* Linux: [CommandLineInterface](/ja/fine-reader/engine/guided-tour/samples#commandlineinterface)
* Windows: [CommandLineInterface](/ja/fine-reader/engine/guided-tour/samples#commandlineinterface); およびデモ ツール: [BatchProcessingRecognition](/ja/fine-reader/engine/guided-tour/samples#batchprocessingrecognition), [MultiProcessingRecognition](/ja/fine-reader/engine/guided-tour/samples#multiprocessingrecognition), [User Pattern Training Utility](/ja/fine-reader/engine/guided-tour/samples#user_pattern_training_utility)

<div id="see-also">
  ## 関連項目
</div>

[ABBYY FineReader Engine での並列処理](/ja/fine-reader/engine/guided-tour/advanced-techniques/parallel-processing)

[Engine オブジェクトのプロパティ](/ja/fine-reader/engine/api-reference/engine-object-iengine-interface/properties)

[プロパティの操作](/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties)

[共有メモリのサイズ制限がある環境で FRE for Linux を実行する](/ja/fine-reader/engine/distribution/distribution-linux/running-fre-12-with-limited-shm)
