Instance Property インスタンスプロパティ

qualityOfService

The relative amount of importance for granting system resources to the operation. そのオペレーションにシステムリソースを認めることに対する相対重要度。

Declaration 宣言

@property NSQualityOfService qualityOfService;

Discussion 議論

Service levels affect the priority with which an operation object is given access to system resources such as CPU time, network resources, disk resources, and so on. Operations with a higher quality of service level are given greater priority over system resources so that they may perform their task more quickly. You use service levels to ensure that operations responding to explicit user requests are given priority over less critical work. サービスレベルは、それを使ってあるオペレーションオブジェクトがシステムリソース、例えばCPU時間、ネットワークリソース、ディスクリソース、などへのアクセスを与えられる優先度に影響を与えます。サービスレベルのより高い品質でのオペレーションは、システムリソースに対してより大きな優先度を与えられます、それでそれらはより素早くそれらのタスクを実行するかもしれません。あなたはサービスレベルを使うことで、明示的なユーザリクエストに応答するオペレーションがより重大でない仕事を越える優先度を与えられることを確実にします。

This property reflects the minimum service level needed to execute the operation effectively. The default value of this property is NSQualityOfServiceDefault and you should leave that value in place whenever possible. When changing the service level, use the minimum level that is appropriate for executing the corresponding task. For example, if the user initiates a task and is waiting for it to finish, assign the value NSQualityOfServiceUserInteractive to this property. The system may give the operation a higher service level to the operation if the resources are available to do so. For additional information, see Prioritize Work with Quality of Service Classes in Energy Efficiency Guide for iOS Apps and Prioritize Work at the Task Level in Energy Efficiency Guide for Mac Apps. このプロパティは、オペレーションを効果的に遂行するのに必要とされる最小限のサービスレベルを反映します。このプロパティの省略時の値はNSQualityOfServiceDefaultです、そしてあなたはその値を可能な時はいつでもそこにそのままにしておくべきです。サービスレベルを変更している場合、該当するタスクを遂行するのに適切である最小限の水準を使ってください。例えば、ユーザがあるタスクに着手するそしてそれが終了するのを待っているならば、値NSQualityOfServiceUserInteractiveをこのプロパティに割り当ててください。システムは、オペレーションにより高いサービスレベルを与えるかもしれません、そのオペレーションがリソースが利用可能ならばそうするように。追加の情報として、Prioritize Work with Quality of Service ClassesEnergy Efficiency Guide for iOS AppsにおいてそしてPrioritize Work at the Task LevelEnergy Efficiency Guide for Mac Appsにおいて見てください。

See Also 参照

Configuring the Execution Priority 遂行優先度を構成設定する