\documentclass[]{article}
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
  \usepackage[T1]{fontenc}
  \usepackage[utf8]{inputenc}
\else % if luatex or xelatex
  \ifxetex
    \usepackage{mathspec}
  \else
    \usepackage{fontspec}
  \fi
  \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
\fi
% use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
% use microtype if available
\IfFileExists{microtype.sty}{%
\usepackage{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\usepackage[unicode=true]{hyperref}
\hypersetup{
            pdftitle={Engr 664-01: Theory of Concurrent Programming Assignment \#4, Fall 2016},
            pdfauthor={H. Conrad Cunningham},
            pdfborder={0 0 0},
            breaklinks=true}
\urlstyle{same}  % don't use monospace font for urls
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
}
\setlength{\emergencystretch}{3em}  % prevent overfull lines
\providecommand{\tightlist}{%
  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{0}
% Redefines (sub)paragraphs to behave more like sections
\ifx\paragraph\undefined\else
\let\oldparagraph\paragraph
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
\fi
\ifx\subparagraph\undefined\else
\let\oldsubparagraph\subparagraph
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
\fi
\usepackage{caption}
\DeclareCaptionLabelFormat{nolabel}{}
\captionsetup{labelformat=nolabel}

\title{Engr 664-01: Theory of Concurrent Programming\\
Assignment \#4, Fall 2016}
\author{H. Conrad Cunningham}
\date{21 October 2016}

\begin{document}
\maketitle

\section{\texorpdfstring{Assignment \#4\\
Due Tuesday, 1 November, 11:59
p.m.}{Assignment \#4 Due Tuesday, 1 November, 11:59 p.m.}}\label{assignment-4-due-tuesday-1-november-1159-p.m.}

\subsection{Instructions}\label{instructions}

Do \textbf{one} of the following:

\begin{itemize}
\item
  Do exercise 6.2 on page 121 of the textbook. Do the modeling work and
  also write a program to implement the algorithm. (If you want to use
  some language other than Java, discuss it with the instructor.)
\item
  Do exercise 7.7 and 7.8 on page 158 of the textbook. That is, do both
  the modelling work and write a program to implement Peterson's
  algorithm. (If you want to use some language other than Java, discuss
  it with the instructor.)
\end{itemize}

Submit your source code and documentation using BlackBoard.

\end{document}
