15.06.2013 Views

Dispensa in PDF - Dipartimento di Scienze Ambientali, Informatica e ...

Dispensa in PDF - Dipartimento di Scienze Ambientali, Informatica e ...

Dispensa in PDF - Dipartimento di Scienze Ambientali, Informatica e ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Sommario<br />

Sommario<br />

Sommario<br />

1 Programmazione a componenti ................................................................................6<br />

1.1 Introduzione al corso ..........................................................................................6<br />

1.2 Concetti prelim<strong>in</strong>ari ............................................................................................6<br />

1.2.1 Processo e thread .........................................................................................6<br />

1.2.2 Commutazione <strong>di</strong> contesto ......................................................................10<br />

1.3 Interazione tra processi.....................................................................................14<br />

1.3.1 Tipologie <strong>di</strong> <strong>in</strong>terazione............................................................................14<br />

1.3.2 Processi Client/Server ...............................................................................15<br />

1.3.3 Processi peer...............................................................................................17<br />

1.3.4 Processi filtro..............................................................................................18<br />

1.3.5 IPC (Inter Process Comunication)...........................................................19<br />

2 Client/server <strong>in</strong> dettaglio..........................................................................................21<br />

2.1 Livelli <strong>di</strong> relazione.............................................................................................21<br />

2.1.1 Client/server livello sistema.....................................................................23<br />

2.1.2 Client/server a livello applicativo ...........................................................25<br />

2.1.3 Il Web Browser e Web Server ..................................................................26<br />

2.1.3.1 Estensione del Web Server (ISAPI e NSAPI) .....................................28<br />

2.1.3.2 Common Gateway Interface e Java Servlet........................................29<br />

2.2 Dove si trova l’utente? ......................................................................................32<br />

2.2.1 Display server: il server X ........................................................................33<br />

2.3 Term<strong>in</strong>al services...............................................................................................35<br />

2.3.1 Emulatore <strong>di</strong> term<strong>in</strong>ale.............................................................................35<br />

2.3.2 Il bilanciamento del carico .......................................................................38<br />

2.3.3 Display server, web browser ed emulatore <strong>di</strong> term<strong>in</strong>ale.....................39<br />

2.4 Server fittizi ........................................................................................................39<br />

2.4.1 L'access server............................................................................................39<br />

2.4.2 Application server .....................................................................................42<br />

2.4.2.1 Application Server – Surrogato <strong>di</strong> client ............................................43<br />

2.5 Logiche................................................................................................................45<br />

3 Pr<strong>in</strong>cipi <strong>di</strong> progettazione..........................................................................................48<br />

3.1 Macch<strong>in</strong>a a Stack ...............................................................................................48<br />

3.1.1 La memoria.................................................................................................48<br />

3.1.2 Record e stack <strong>di</strong> attivazione ...................................................................49<br />

3.1.2.1 Attributi statici .......................................................................................55<br />

3.1.2.2 Attributi statici e migrazione delle computazioni ............................57<br />

3.1.3 Ricorsione <strong>in</strong> Fortran.................................................................................58<br />

3.1.4 Passaggio dei parametri ...........................................................................59<br />

Carnielli Efrem: Programmazione a componenti<br />

3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!