defense/src/fig/context/seq.tex

32 lines
838 B
TeX

\begin{tikzpicture}
\input{src/tikz/orchestration}
\begin{scope}[overlay]
\node(origin){};
\node at (origin) (t-1) {};
\end{scope}
\begin{scope}[node distance=4mm and 4mm]
\node[orch/task=black,below=of t-1] (t0) {m\textsubscript{0}};
\node[orch/task=white,draw=none,fill=none,below=of t0] (t1) {};
\node[orch/task=black,below=of t1] (t2) {m\textsubscript{N-1}};
\node[above=of t0] (label0) {\en{thread}~0};
\node[below=of t2] (endthread0) {};
\end{scope}
\draw[-] (label0) -- (t0);
\draw[-] (t0) -- (t1);
\draw[dashed] (t1.north) -- (t1.south);
\draw[-] (t1) -- (t2);
\draw[-] (t2) -- (endthread0);
\begin{scope}[common/overlay]
\draw[decorate,decoration={brace, amplitude=4pt, raise=9mm, mirror}]
(t0.north) -- (t2.south) node[left,midway,xshift=-11mm] {$N$ tâches};
\end{scope}
\end{tikzpicture}