Studio e Realizzazione di Architetture Concorrenti per Sistemi ad ...
Studio e Realizzazione di Architetture Concorrenti per Sistemi ad ...
Studio e Realizzazione di Architetture Concorrenti per Sistemi ad ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Architetture</strong> <strong>Concorrenti</strong> in prodotti a larga <strong>di</strong>ffusione - EJB 31<br />
2.3.4.4 Modello Thre<strong>ad</strong> Pool<br />
Un compromesso tra ritar<strong>di</strong> nella risposta alle chiamate ed efficienza nell'utilizzo delle<br />
risorse, può essere ottenuto servendosi <strong>di</strong> una collezione <strong>di</strong> thre<strong>ad</strong> creati una volta<br />
<strong>per</strong> tutte in fase <strong>di</strong> inizializzazione e riutilizzati ogni volta che ve ne sia bisogno. Non<br />
vi è così <strong>per</strong><strong>di</strong>ta <strong>di</strong> tempo <strong>per</strong> le o<strong>per</strong>azioni <strong>di</strong> creazione dei thre<strong>ad</strong> e, inoltre, le<br />
richieste dovranno essere ritardate solo nell'evenienza che tutto il pool sia<br />
completamente occupato nell'istante del loro inoltro [Diagramma 15] [Bibl. 14].<br />
Diagramma 15 : Thre<strong>ad</strong> Pool server<br />
2.4 EJB<br />
Enterprise JavaBeans è una specifica API (Application Programming Interface),<br />
prodotta da Sun Microsystems, che estende il modello a componenti <strong>di</strong> JavaBeans<br />
mettendo a <strong>di</strong>sposizione degli sviluppatori d'applicativi <strong>per</strong> le imprese, un ambiente<br />
Object-Oriented transazionale.