NavigatorConcurrentHardware

この翻訳は不完全です。英語から この記事を翻訳 してください。

The NavigatorConcurrentHardware mixin adds to the Navigator interface features which allow Web content to determine how many logical processors the user has available, in order to let content and Web apps optimize their operations to best take advantage of the user's CPU.

註: この機能は Web Workers 内で利用可能です。

The number of logical processor cores is a way to measure the number of threads which can effectively be run at once without them having to share CPUs. Modern computers have multiple physical cores in their CPU (two or four cores is typical), but each physical core is also usually able to run more than one thread at a time using advanced scheduling techniques. So a four-core CPU may return 8. The browser may, however, choose to reduce the number in order to represent more accurately the number of Workers that can run at once

Properties

NavigatorConcurrentHardware.hardwareConcurrency 読取専用
Returns the number of logical processors which may be available to the user agent. This value is always at least 1, and will be 1 if the actual number of logical processors can't be determined.

Methods

The NavigatorConcurrentHardware mixin has no methods.

Specifications

Specification Status Comment
HTML Living Standard
NavigatorConcurrentHardware の定義
現行の標準 Initial definition.

Browser compatibility

Update compatibility data on GitHub
デスクトップモバイル
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewAndroid 版 ChromeEdge MobileAndroid 版 FirefoxAndroid 版 OperaiOSのSafariSamsung Internet
NavigatorConcurrentHardwareChrome 完全対応 37Edge 完全対応 ありFirefox 完全対応 48IE ? Opera 完全対応 24Safari ? WebView Android 完全対応 37Chrome Android 完全対応 37Edge Mobile 完全対応 ありFirefox Android 完全対応 48Opera Android 完全対応 24Safari iOS ? Samsung Internet Android 完全対応 あり
Available in workersChrome 完全対応 37Edge ? Firefox ? IE ? Opera 完全対応 24Safari ? WebView Android 完全対応 37Chrome Android 完全対応 37Edge Mobile ? Firefox Android ? Opera Android 完全対応 24Safari iOS ? Samsung Internet Android 完全対応 あり
hardwareConcurrencyChrome 完全対応 37Edge 完全対応 15Firefox 完全対応 48IE ? Opera 完全対応 24Safari ? WebView Android 完全対応 37Chrome Android 完全対応 37Edge Mobile 完全対応 ありFirefox Android 完全対応 48Opera Android 完全対応 24Safari iOS ? Samsung Internet Android 完全対応 あり

凡例

完全対応  
完全対応
実装状況不明  
実装状況不明

See also