diff options
| author | John Ogness <john.ogness@linutronix.de> | 2018-06-21 15:41:46 +0206 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2018-06-21 15:41:46 +0206 |
| commit | 6baba546cefbd4e5aba83fe6673f2b748ea45bd2 (patch) | |
| tree | 16604796821c6aceb6f762a76898a193b29dccc2 /linux-basics | |
| parent | 42029eefb562cb0da2fd5a132754fca20c8ccc98 (diff) | |
linux processes: talk about daemons sooner
The daemon slides are sitting in the middle of the scheduling
section. Very odd. Move them to after the Parent/Child slides.
There it makes more sense.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'linux-basics')
| -rw-r--r-- | linux-basics/linux-processes/pres_linux-processes_en.tex | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/linux-basics/linux-processes/pres_linux-processes_en.tex b/linux-basics/linux-processes/pres_linux-processes_en.tex index 440a69e..67fb762 100644 --- a/linux-basics/linux-processes/pres_linux-processes_en.tex +++ b/linux-basics/linux-processes/pres_linux-processes_en.tex @@ -50,6 +50,27 @@ turned into a ''Zombie'' \end{itemize} \end{frame} +\subsection{Daemons} +\begin{frame} +\frametitle{Daemons} +\begin{alertblock}{What is a Daemon?} +A Daemon runs in background and is not attached to a terminal. Daemons are +used for specific tasks, such as a web-server, a printer server, ... +\end{alertblock} +\end{frame} + +\begin{frame} +\frametitle{How a Daemon gets created} +\begin{itemize} +\item Like any other process, a Daemon is created using fork() +\item after forking the parent exits, which causes the child to be ''adopted'' +by PID 1 +\item then the child calls setsid(), to create a new session for that process +\item afterwards several administrative tasks will be done (like changing the +working directory and so on...) +\end{itemize} +\end{frame} + \begin{frame} \frametitle{Task states} Each task can have one of the following states: @@ -197,27 +218,6 @@ int setrlimit(int resource, \end{lstlisting} \end{frame} -\subsection{Daemons} -\begin{frame} -\frametitle{Daemons} -\begin{alertblock}{What is a Daemon?} -A Daemon runs in background and is not attached to a terminal. Daemons are -used for specific tasks, such as a web-server, a printer server, ... -\end{alertblock} -\end{frame} - -\begin{frame} -\frametitle{How a Daemon gets created} -\begin{itemize} -\item Like any other process, a Daemon is created using fork() -\item after forking the parent exits, which causes the child to be ''adopted'' -by PID 1 -\item then the child calls setsid(), to create a new session for that process -\item afterwards several administrative tasks will be done (like changing the -working directory and so on...) -\end{itemize} -\end{frame} - \subsection{Multicore specific scheduling} \begin{frame}[fragile] \frametitle{Scheduling on Multicore Systems} |
