[PATCH 6/6] SMPdesign/partexercises: Move figure env next to first paragraph in QQA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 6a10517e8890a37b34c4d3dbbb91372df1906ac1 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
Date: Fri, 6 Mar 2020 21:14:19 +0900
Subject: [PATCH 6/6] SMPdesign/partexercises: Move figure env next to first paragraph in QQA

This change removes the extra indent at the beginning of the
answer.

Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
 SMPdesign/partexercises.tex | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/SMPdesign/partexercises.tex b/SMPdesign/partexercises.tex
index 4ceaefeb..12945935 100644
--- a/SMPdesign/partexercises.tex
+++ b/SMPdesign/partexercises.tex
@@ -134,14 +134,6 @@ the acquisition and release algorithms.
 	Is there a better solution to the Dining
 	Philosophers Problem?
 \QuickQuizAnswer{
-%
-\begin{figure}[tb]
-\centering
-\includegraphics[scale=.7]{SMPdesign/DiningPhilosopher5PEM}
-\caption{Dining Philosophers Problem, Fully Partitioned}
-\QContributedBy{Figure}{fig:SMPdesign:Dining Philosophers Problem, Fully Partitioned}{Kornilios Kourtis}
-\end{figure}
-%
 	One such improved solution is shown in
 	Figure~\ref{fig:SMPdesign:Dining Philosophers Problem, Fully Partitioned},
 	where the philosophers are simply provided with an additional
@@ -150,6 +142,13 @@ the acquisition and release algorithms.
 	is never any need for philosophers to wait on one another.
 	In addition, this approach offers greatly improved disease control.
 
+\begin{figure}[tb]
+\centering
+\includegraphics[scale=.7]{SMPdesign/DiningPhilosopher5PEM}
+\caption{Dining Philosophers Problem, Fully Partitioned}
+\QContributedBy{Figure}{fig:SMPdesign:Dining Philosophers Problem, Fully Partitioned}{Kornilios Kourtis}
+\end{figure}
+
 	This solution might seem like cheating to some, but such
 	``cheating'' is key to finding good solutions to many
 	concurrency problems.
-- 
2.17.1





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux