<commit_before>\makeatletter \@ifundefined{rootpath}{\input{../../setup/preamble.tex}}\makeatother
\worksheetstart{Comparison of Results}{1}{April 24, 2013}{Andreas}{../../}
This chapter presents a comparison of the selected concurrency models and their characteristics. The comparison leads up to a description of when to apply each of the selected concurrency models.
\label{chap:results}

\kasper[inline]{Boxing af integers i Java implementation. int[] halverede tid sammemlignet med ArrayList<Integer>}
\andreas[inline]{Actors er svært at bruge hvis der er en eksisterende kodebase, da det kræver en modelering fra bunden. Actors kræver, at hele systemet bliver designet omkring det.}
\section{Characteristics}
This section presents a characteristics based comparison of the selected concurrency models.

\subsection{Implicit or Explicit Concurrency}

\begin{figure}[htbp]
\centering
 \includegraphics[width=0.9\textwidth]{\rootpath/worksheets/result/figures/results_char_implicit_explicit} 
 \caption{Selected concurrency model on the Implicit - Explicit concurrency spectrum}
\label{fig:results_char_impli_expli}
\end{figure}

\subsection{Fault Restrictive or Expressive Model}

\begin{figure}[htbp]
\centering
 \includegraphics[width=0.9\textwidth]{\rootpath/worksheets/result/figures/results_char_fault_expressive} 
 \caption{Selected concurrency models on the Fault Restrictive - Expressive spectrum}
\label{fig:results_char_fault_expressive}
\end{figure}

\subsection{Pessimistic or Optimistic Model}

\begin{figure}[htbp]
\centering
 \includegraphics[width=0.9\textwidth]{\rootpath/worksheets/result/figures/results_char_pessimistic_optemistic} 
 \caption{Selected concurrency models on the Pessimistic - Optimistic spectrum}
\label{fig:results_char_pes_opti}
\end{figure}

\subsection{Simplicity}

\begin{figure}[htbp]
\centering<commit_msg>implcit explicit<commit_after>\makeatletter \@ifundefined{rootpath}{\input{../../setup/preamble.tex}}\makeatother
\worksheetstart{Comparison of Results}{1}{April 24, 2013}{Andreas}{../../}
This chapter presents a comparison of the selected concurrency models and their characteristics. The comparison leads up to a description of when to apply each of the selected concurrency models.
\label{chap:results}

\kasper[inline]{Boxing af integers i Java implementation. int[] halverede tid sammemlignet med ArrayList<Integer>}
\andreas[inline]{Actors er svært at bruge hvis der er en eksisterende kodebase, da det kræver en modelering fra bunden. Actors kræver, at hele systemet bliver designet omkring det.}
\section{Characteristics}
This section presents a characteristics based comparison of the selected concurrency models.

\subsection{Implicit or Explicit Concurrency}
The placement of the three concurrency models on the implicit to explicit spectrum is shown in \bsref{fig:results_char_impli_expli}.

\ac{TL} and \ac{STM} are both placed high on the explicit end of the scale. They both require the programmer to explicitly manage threads and either use locks or transactions for marking critical regions. The actor model is more implicit than the other models as it hides the concepts of marking critical regions and low level threads. The actor model does however introduce new constructs, in the form of actors and messages, that must be explicitly used for programming concurrent programs.

\begin{figure}[htbp]
\centering
 \includegraphics[width=0.9\textwidth]{\rootpath/worksheets/result/figures/results_char_implicit_explicit} 
 \caption{Selected concurrency model on the Implicit - Explicit concurrency spectrum}
\label{fig:results_char_impli_expli}
\end{figure}

\subsection{Fault Restrictive or Expressive Model}
\bsref{fig:results_char_fault_expressive} shows how the three concurrency models are placed on the fault restrictive to expressive spectrum.

BLA

\begin{figure}[htbp]
\centering
 \includegraphics[width=0.9\textwidth]{\rootpath/worksheets/result/figures/results_char_fault_expressive} 
 \caption{Selected concurrency models on the Fault Restrictive - Expressive spectrum}
\label{fig:results_char_fault_expressive}
\end{figure}

\subsection{Pessimistic or Optimistic Model}

\begin{figure}[htbp]
\centering
 \includegraphics[width=0.9\textwidth]{\rootpath/worksheets/result/figures/results_char_pessimistic_optemistic} 
 \caption{Selected concurrency models on the Pessimistic - Optimistic spectrum}
\label{fig:results_char_pes_opti}
\end{figure}

\subsection{Simplicity}

\begin{figure}[htbp]
\centering
{'fraction_non_alphanumeric': 0.08389112003569835, 'fraction_numerical': 0.005800981704596163, 'mean_word_length': 6.277597402597403, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '954910', 'n_tokens_mistral': 1293, 'n_tokens_neox': 1283, 'n_words': 408}