Skip to content

Commit f26578e

Browse files
committed
Cleanup sched lecture
1 parent 6235572 commit f26578e

File tree

1 file changed

+17
-26
lines changed

1 file changed

+17
-26
lines changed

scheduling/scheduling.tex

+17-26
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@
4343

4444
\begin{slide}{Scheduling criteria}
4545
\itms{
46-
\item Why do we care?
47-
\ittms{
48-
\item What goals should we have for a scheduling algorithm?
49-
}
46+
\item What goals should we have for a scheduling algorithm?
5047
\pause
5148
\item \emph{Throughput} -- \# of procs that complete per unit time
5249
\ittms{
@@ -243,20 +240,20 @@
243240
}
244241
\item Can lead to unfairness or starvation
245242
\item In practice, can't actually predict the future
246-
\item But can estimate CPU burst length based on past
247-
\ittms{
248-
\item Exponentially weighted average a good idea
249-
\item $t_n$ actual length of proc's $n^\mathrm{th}$ CPU burst
250-
\item $\tau_{n+1}$ estimated length of proc's $n+1^\mathrm{st}$
251-
\item Choose parameter $\alpha$ where $0<\alpha\le1$
252-
\item Let $\tau_{n+1}=\alpha t_n+(1-\alpha)\tau_n$
253-
}
243+
% \item But can estimate CPU burst length based on past
244+
% \ittms{
245+
% \item Exponentially weighted average a good idea
246+
% \item $t_n$ actual length of proc's $n^\mathrm{th}$ CPU burst
247+
% \item $\tau_{n+1}$ estimated length of proc's $n+1^\mathrm{st}$
248+
% \item Choose parameter $\alpha$ where $0<\alpha\le1$
249+
% \item Let $\tau_{n+1}=\alpha t_n+(1-\alpha)\tau_n$
250+
% }
254251
}
255252
\end{slide}
256253

257-
\begin{slide}{Exp. weighted average example}
258-
\centerline{\includegraphics[width=4in]{figs/predict}}
259-
\end{slide}
254+
%\begin{slide}{Exp. weighted average example}
255+
%\centerline{\includegraphics[width=4in]{figs/predict}}
256+
%\end{slide}
260257

261258
\begin{slide}{Round robin (RR) scheduling}
262259
\centerline{\includegraphics[width=3.3in]{figs/rr}}
@@ -367,8 +364,9 @@
367364
}}
368365
\end{slide}
369366

367+
\section{Multilevel feedback queues (BSD 4.4)}
370368

371-
\begin{slide}{Multilevel feeedback queues (BSD)}
369+
\begin{slide}{Multilevel feedback queues (BSD)}
372370
\centerline{\includegraphics[height=1.5in]{figs/bsd}}
373371
\itms{
374372
\item Every runnable process on one of 32 run queues
@@ -564,6 +562,7 @@
564562
% }
565563
% \end{slide}
566564

565+
\iffalse
567566
\begin{slide}{Thread dependencies}
568567
\itms{
569568
\item Say $H$ at high priority, $L$ at low priority
@@ -608,7 +607,9 @@
608607
}
609608
}
610609
\end{slide}
610+
\fi
611611

612+
\section{Borrowed Virtual Time Scheduler}
612613

613614
\begin{slide}{Borrowed Virtual Time Scheduler \cref{readings/bvt.pdf}{[Duda]}}
614615
\itms{
@@ -788,14 +789,4 @@
788789
% }
789790
% \end{slide}
790791

791-
\begin{slide}{Lottery Scheduler \cref{readings/lottery.pdf}{[Waldspurger]}}
792-
\itms{
793-
\item Reading assignment a great paper and simple algorithm
794-
\gap
795-
\item Randomly select a process to run!
796-
\gap
797-
\item Process priorities are determined by a number of tickets (or shares)
798-
}
799-
\end{slide}
800-
801792
\end{document}

0 commit comments

Comments
 (0)