Finito con {{{tee}}}, spostati un po' di TODO, messo il placeholder
[gapil.git] / thread.tex
1 %% thread.tex
2 %%
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
9 %% License".
10 %%
11
12 \chapter{I thread}
13 \label{cha:threads}
14
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. 
21
22
23 \section{Introduzione ai \textit{thread}}
24 \label{sec:thread_intro}
25
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.
30
31
32 \subsection{Una panoramica}
33 \label{sec:thread_overview}
34
35 % riferimenti
36 % http://vergil.chemistry.gatech.edu/resources/programming/threads.html
37 % http://math.arizona.edu/~swig/documentation/pthreads/
38 % http://www.humanfactor.com/pthreads/
39
40
41 \subsection{I \textit{thread} e Linux}
42 \label{sec:linux_thread}
43
44 \subsection{Implementazioni alternative}
45 \label{sec:thread_other}
46
47
48
49
50 % http://www.gnu.org/software/pth/
51
52
53 \section{Posix \textit{thread}}
54 \label{sec:thread_intro}
55
56
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
62 delle \acr{glibc}.
63
64
65 \subsection{Una panoramica}
66 \label{sec:pthread_overview}
67
68
69 \subsection{La gestione dei \textit{thread}}
70 \label{sec:pthread_management}
71
72
73 \subsection{I \textit{mutex}}
74 \label{sec:pthread_mutex}
75
76
77 \subsection{Le variabili di condizione}
78 \label{sec:pthread_cond}
79
80
81
82 %%% Local Variables: 
83 %%% mode: latex
84 %%% TeX-master: "gapil"
85 %%% End: