Class

Process

An object that represents a subprocess of the current process.

Declaration 宣言

class Process : NSObject

Overview 概要

Using the Process class, your program can run another program as a subprocess and can monitor that program’s execution. A Process object creates a separate executable entity; it’s different from Thread because it doesn’t share memory space with the process that creates it.

A process operates within an environment defined by the current values for several items: the current directory, standard input, standard output, standard error, and the values of any environment variables. プロセスは、いくつかの項目:現在のディレクトリ、標準入力、標準出力、標準エラー、そして何らかの環境変数の値に対して、現在の値によって定義されるある環境内で演算します。 By default, a Process object inherits its environment from the process that launches it. If there are any values that should be different for the process (for example, if the current directory needs to change), change the value before your app launches it. Your app can’t change a process’s environment while it’s running.

You can only run a Process object once. Subsequent attempts raise an error. その後の試みはエラーを引き起こします。

Topics 話題

Creating and Initializing a Process Object

Returning Process Information

Running and Stopping a Process

Querying the Process State

Configuring a Process Object

Process Termination Handler

Constants 定数

Notifications 通知

Deprecated 非推奨

Relationships 関係

Inherits From 継承元

See Also 参照

Tasks and Pipes タスクとパイプ