3 %% Copyright (C) 2007 Simone Piccardi. Permission is granted to
4 %% copy, distribute and/or modify this document under the terms of the GNU Free
5 %% Documentation License, Version 1.1 or any later version published by the
6 %% Free Software Foundation; with the Invariant Sections being "Un preambolo",
7 %% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the
8 %% license is included in the section entitled "GNU Free Documentation
15 Tratteremo in questo capitolo un modello di programmazione multitasking,
16 quello dei \textit{thread}, alternativo al modello classico dei processi,
17 tipico di Unix. Ne esaminiremo le caratteristiche, vantaggi e svantaggi, e le
18 diverse realizzazioni che sono disponibili per Linux; nella seconda parte
19 tratteremo in dettaglio quella che è l'implementazione principale, che fa
20 riferimento all'interfaccia standardizzata da POSIX.1e.
23 \section{Introduzione ai \textit{thread}}
24 \label{sec:thread_intro}
26 Questa prima sezione costituisce una introduzione ai \textit{thread} e
27 tratterà i concetti principali del relativo modello di programmazione,
28 esamineremo anche queli modelli sono disponibili per Linux, dando una breve
29 panoramica sulle implementazioni alternative.
32 \subsection{Una panoramica}
33 \label{sec:thread_overview}
36 % http://vergil.chemistry.gatech.edu/resources/programming/threads.html
37 % http://math.arizona.edu/~swig/documentation/pthreads/
38 % http://www.humanfactor.com/pthreads/
41 \subsection{I \textit{thread} e Linux}
42 \label{sec:linux_thread}
44 \subsection{Implementazioni alternative}
45 \label{sec:thread_other}
50 % http://www.gnu.org/software/pth/
53 \section{Posix \textit{thread}}
54 \label{sec:thread_intro}
57 Tratteremo in questa sezione l'interfaccia di programmazione con i
58 \textit{thread} standardizzata dallo standard POSIX 1.c, che è quella che è
59 stata seguita anche dalle varie implementazioni dei \textit{thread} realizzate
60 su Linux, ed in particolare dalla \textit{Native Thread Posix Library} che è
61 stata integrata con i kernel della serie 2.6 e che fa parte a pieno titolo
65 \subsection{Una panoramica}
66 \label{sec:pthread_overview}
69 \subsection{La gestione dei \textit{thread}}
70 \label{sec:pthread_management}
73 \subsection{I \textit{mutex}}
74 \label{sec:pthread_mutex}
77 \subsection{Le variabili di condizione}
78 \label{sec:pthread_cond}
84 %%% TeX-master: "gapil"