aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/api/navigatorconcurrenthardware/index.html
blob: 10fb1576ca7265b0b2ec13688819d6ec081d5f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
title: NavigatorConcurrentHardware
slug: Web/API/NavigatorConcurrentHardware
translation_of: Web/API/NavigatorConcurrentHardware
---
<p> </p>

<p>Il <strong><code>NavigatorConcurrentHardware</code></strong> aggiunge all'interfaccia delle caratteristiche che permettono ai contenuti Web di determinare quanti processori logici sono a disposizione dell'utente, in modo tale da ottimizzare le operazioni di contenuti e Web apps che possano usufruire al meglio la CPU dell'utente.</p>

<p>Il numero dei processori logici del <strong>core </strong>serve a misurare il numero di <em>threads </em>che possono essere di fatto eseguiti per volta, senza che questi condividano la stesse CPU. Oggigiorno i computer hanno diversi core nella loro CPU(2 o 4 cores). Ogni core è in grado di eseguire più di un <strong>thread</strong> per volta, avvalendosi di tecniche avanzate di <strong>scheduling</strong>. Una CPU a 4 cores può restituire dunque 8 threads. Tuttavia, il browser può scegliere di ridurre questo numero in modo tale da rappresentare in maniera più accurata il numero di <code><a href="https://developer.mozilla.org/en-US/docs/Web/API/Worker" title="The Worker interface of the Web Workers API represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread.">Worker</a></code> eseguiti per volta.</p>

<h2 id="Proprietà">Proprietà</h2>

<dl>
 <dt><a href="https://developer.mozilla.org/en-US/docs/Web/API/NavigatorConcurrentHardware/hardwareConcurrency" title="The navigator.hardwareConcurrency read-only property returns the number of logical processors available to run threads on the user's computer."><code>NavigatorConcurrentHardware.hardwareConcurrency</code></a> </dt>
 <dd>Restituisce il numero di processori logici disponibili allo user agent. Il valore sarà sempre almeno pari a 1 e restituirà 1 se non è possibile determinare il numero di processori logici. </dd>
</dl>

<h2 id="Metodi">Metodi</h2>

<p>Il mixin di<code style=""> <em>NavigatorConcurrentHardware</em></code><em> </em>non ha metodi.</p>

<h2 id="Specifiche">Specifiche</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specifica</th>
   <th scope="col">Stato</th>
   <th scope="col">Commento</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td><a href="https://html.spec.whatwg.org/multipage/#navigatorconcurrenthardware" hreflang="en" lang="en" rel="noopener">HTML Living Standard<br>
    <small lang="en-US">The definition of 'NavigatorConcurrentHardware' in that specification.</small></a></td>
   <td>Living Standard</td>
   <td>
    <p>Definizione Iniziale</p>
   </td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<div class="hidden">La tabella di compatibilità di questa pagina è generata da dati strutturati. Se vuoi contribuire, visita la pagina <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> e inviaci una pull request.</div>

<p>{{Compat("api.NavigatorConcurrentHardware")}}</p>

<h2 id="Vedi_anche">Vedi anche</h2>

<ul>
 <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Navigator" title="The Navigator interface represents the state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities."><code>Navigator</code></a></li>
 <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator" title="The WorkerNavigator interface represents a subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator."><code>WorkerNavigator</code></a></li>
</ul>