Skip to contentSkip to conversation

Break and capitalize after colon, take two

PATCH In review Akira Yokosawa 2 participants 10 messages Jul 8, 2021 – Jul 9, 2021

lore
Share & tools
lore
#0 lore raw

cover Break and capitalize after colon, take two

Hi Paul,

Here are colon related tweaks though Chapter 9.

Patches 1/6 -- 3/6 don't change sentences/clauses/phrases except for capitalization.
Patches 4/6 -- 6/6 remove redundant looking Oxford commas in two-item enumeration lists.
However, I'm not sure Patches 4/6 -- 6/6 are the right fixes or not.

Please pick whichever ones you'd like.

NOTE: There is a hunk in Patch 3/6:

Quoted 4 lines
(quoted diff) +0 -0
@@ -535,9 +537,10 @@ and with increasing use of hazard pointers in other projects, demonstrates
 that tolerance for such inconsistencies is more common than one might
 imagine.
 This is especially the case given that single-item lookups are much more

Review and with increasing use of hazard pointers in other projects, demonstrates · line 546

Quoted 10 lines
(quoted diff) +4 -3
-common than traversals:  After all, (1)~concurrent updates are less likely
-to affect a single-item lookup than they are a full traversal, and
-(2)~an isolated single-item lookup cannot detect such inconsistencies.
+common than traversals:
+After all, (1)~concurrent updates are less likely to affect a single-item
+lookup than they are a full traversal, and (2)~an isolated single-item
+lookup cannot detect such inconsistencies.
 
 From a more theoretical viewpoint, there are even some special cases where
 RCU readers can be considered to be fully ordered with updaters, despite

, where the inline enumerated list is not converted to the "enumerate*" list. This one is lead by "After all," not by a colon, and I kept the lowercase words following (1) and (2).

This level of fluctuation is unavoidable in natural language text, I suppose.

Thanks, Akira

--
Akira Yokosawa (6):
toolsoftrade, count, SMPdesign: Break and capitalize after colon
locking: Break and capitalize after colon
defer: Break and capitalize after colon
count: Remove Oxford comma in two-item enumeration list
locking: Remove Oxford comma in two-item list
defer: Remove Oxford comma in two-item list

 SMPdesign/SMPdesign.tex       | 23 ++++----
 SMPdesign/beyond.tex          | 19 +++----
 count/count.tex               | 66 ++++++++++++-----------
 defer/hazptr.tex              |  9 ++--
 defer/rcufundamental.tex      | 29 ++++++-----
 defer/rcuintro.tex            |  6 ++-
 defer/rcuusage.tex            | 34 +++++++-----
 defer/seqlock.tex             | 12 +++--
 defer/whichtochoose.tex       | 19 ++++---
 locking/locking-existence.tex |  4 +-
 locking/locking.tex           | 98 ++++++++++++++++++++---------------
 toolsoftrade/toolsoftrade.tex | 31 ++++++-----
 12 files changed, 201 insertions(+), 149 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/6 toolsoftrade, count, SMPdesign: Break and capitalize after colon

---
 SMPdesign/SMPdesign.tex       | 23 +++++++------
 SMPdesign/beyond.tex          | 19 ++++++-----
 count/count.tex               | 64 ++++++++++++++++++++---------------
 toolsoftrade/toolsoftrade.tex | 31 +++++++++--------
 4 files changed, 76 insertions(+), 61 deletions(-)
SMPdesign/SMPdesign.tex +13 -10
index e6b967f7..edfe556c 100644
@@ -15,8 +15,8 @@ high-performance solutions, while poorly partitioned problems result
 in slow and complex solutions.
 This chapter will help you design partitioning into your code, with
 some discussion of batching and weakening as well.
-The word ``design'' is very important: You should partition first,
-batch second, weaken third, and code fourth.
+The word ``design'' is very important:
+You should partition first, batch second, weaken third, and code fourth.
 Changing this order often leads to poor performance and scalability
 along with great frustration.\footnote{
 	That other great dodge around the Laws of Physics, read-only
@@ -705,8 +705,9 @@ The 512-by-512 matrix multiply's efficiency is measurably less
 than 1.0 on as few as 10 threads, and even the 1024-by-1024 matrix
 multiply deviates noticeably from perfection at a few tens of threads.
 Nevertheless, this figure clearly demonstrates the performance and
-scalability benefits of batching: If you must incur synchronization
-overhead, you may as well get your money's worth.
+scalability benefits of batching:
+If you must incur synchronization overhead, you may as well get your
+money's worth.
 
 \QuickQuiz{
 	How can a single-threaded 64-by-64 matrix multiple possibly
@@ -754,7 +755,8 @@ or the parallel-fastpath approach discussed in the next section.
 	scalability, but by that point GPGPUs become quite attractive,
 	especially from a price/performance viewpoint.
 
-	Moral: If you have a parallel program with variable input,
+	Moral:
+	If you have a parallel program with variable input,
 	always include a check for the input size being too small to
 	be worth parallelizing.
 	And when it is not helpful to parallelize, it is not helpful
@@ -764,8 +766,8 @@ or the parallel-fastpath approach discussed in the next section.
 \section{Parallel Fastpath}
 \label{sec:SMPdesign:Parallel Fastpath}
 %
-\epigraph{There are two ways of meeting difficulties: You alter the
-	  difficulties, or you alter yourself to meet them.}
+\epigraph{There are two ways of meeting difficulties:
+	  You alter the difficulties, or you alter yourself to meet them.}
 	 {\emph{Phyllis Bottome}}
 
 Fine-grained (and therefore \emph{usually} higher-performance)
@@ -882,7 +884,7 @@ to acquire.
 \Cref{lst:SMPdesign:Hierarchical-Locking Hash Table Search}
 shows how our hash-table search might be adapted to do hierarchical
 locking, but also shows the great weakness of this approach:
-we have paid the overhead of acquiring a second lock, but we only
+We have paid the overhead of acquiring a second lock, but we only
 hold it for a short time.
 In this case, the simpler data-locking approach would be simpler
 and likely perform better.
@@ -989,7 +991,7 @@ we place a limit on the number of blocks that can be in each CPU's
 cache.
 In a two-CPU system, the flow of memory blocks will be as shown
 in \cref{fig:SMPdesign:Allocator Cache Schematic}:
-when a given CPU is trying to free a block when its pool is full,
+When a given CPU is trying to free a block when its pool is full,
 it sends blocks to the global pool, and, similarly, when that CPU
 is trying to allocate a block when its pool is empty, it retrieves
 blocks from the global pool.
@@ -1192,7 +1194,8 @@ this book.
 	where each thread repeatedly first allocates $m$ blocks of memory
 	and then frees those $m$ blocks, how large must the global pool
 	size be?
-	\emph{Note:} Obtaining the correct answer will require you to
+	\emph{Note:}
+	Obtaining the correct answer will require you to
 	examine the \path{smpalloc.c} source code, and very likely
 	single-step it as well.
 	You have been warned!
SMPdesign/beyond.tex +10 -9
index 35bdd92f..60aeed12 100644
@@ -393,7 +393,8 @@ Although the algorithms were in fact finding valid solutions, the
 plot of CDFs in
 \cref{fig:SMPdesign:CDF of Solution Times For SEQ; PWQ; and PART}
 assumes independent data points.
-This is not the case:  The performance tests randomly generate a maze,
+This is not the case:
+The performance tests randomly generate a maze,
 and then run all solvers on that maze.
 It therefore makes sense to plot the CDF of the ratios of
 solution times for each generated maze,
@@ -407,9 +408,9 @@ two times faster than SEQ\@.
 A forty-times speedup on two threads demands explanation.
 After all, this is not merely embarrassingly parallel, where partitionability
 means that adding threads does not increase the overall computational cost.
-It is instead \emph{\IX{humiliatingly parallel}}: Adding threads
-significantly reduces the overall computational cost, resulting in
-large algorithmic superlinear speedups.
+It is instead \emph{\IX{humiliatingly parallel}}:
+Adding threads significantly reduces the overall computational cost,
+resulting in large algorithmic superlinear speedups.
 
 \begin{figure}
 \centering
@@ -527,9 +528,9 @@ parallelism via co-routines, for example, manually switching context
 between threads on each pass through the main do-while loop in
 \cref{lst:SMPdesign:Partitioned Parallel Solver Pseudocode}.
 This context switching is straightforward because the context
-consists only of the variables \co{c} and \co{vi}: Of the numerous
-ways to achieve the effect, this is a good tradeoff between
-context-switch overhead and visit percentage.
+consists only of the variables \co{c} and \co{vi}:
+Of the numerous ways to achieve the effect, this is a good tradeoff
+between context-switch overhead and visit percentage.
 As can be seen in
 \cref{fig:SMPdesign:Partitioned Coroutines},
 this coroutine algorithm (COPART) is quite effective, with the performance
@@ -596,8 +597,8 @@ interval for seven and eight threads.
 The reasons for the peak at two threads are (1) the lower complexity
 of termination detection in the two-thread case and (2) the fact that
 there is a lower probability of the third and subsequent threads making
-useful forward progress: Only the first two threads are guaranteed to start on
-the solution line.
+useful forward progress:
+Only the first two threads are guaranteed to start on the solution line.
 This disappointing performance compared to results in
 \cref{fig:SMPdesign:Varying Maze Size vs. COPART}
 is due to the less-tightly integrated hardware available in the
count/count.tex +36 -28

156 lines not on this page · raw message

toolsoftrade/toolsoftrade.tex +17 -14
index 77c956f7..c011f5e2 100644
@@ -68,7 +68,7 @@ shell to run the two instances of the program in the background.
 \end{fcvref}
 The resulting execution is as shown in
 \cref{fig:toolsoftrade:Execution Diagram for Parallel Shell Execution}:
-the two instances of \co{compute_it} execute in parallel,
+The two instances of \co{compute_it} execute in parallel,
 \co{wait} completes after both of them do, and then the two instances
 of \co{cat} execute sequentially.
 % @@@ Maui scheduler, load balancing, BOINC, and so on.
@@ -819,14 +819,15 @@ rights to assume that the value of \co{goflag} would never change.
 }\QuickQuizAnswerM{
 	No, memory barriers are not needed and won't help here.
 	Memory barriers only enforce ordering among multiple memory
-	references:  They absolutely do not guarantee to expedite the
-	propagation of data from one part of the system to another.\footnote{
+	references:
+	They absolutely do not guarantee to expedite the propagation
+	of data from one part of the system to another.\footnote{
 		There have been persistent rumors of hardware in which
 		memory barriers actually do expedite propagation of data,
 		but no confirmed sightings.}
-	This leads to a quick rule of thumb:  You do not need
-	memory barriers unless you are using more than one
-	variable to communicate between multiple threads.
+	This leads to a quick rule of thumb:
+	You do not need memory barriers unless you are using more
+	than one variable to communicate between multiple threads.
 
 	But what about \co{nreadersrunning}?
 	Isn't that a second variable used for communication?
@@ -1940,10 +1941,11 @@ This transforms the if-then-else into an if-then, saving one branch.
 	Thankfully, the answer is no.
 	This is because the compiler is forbidden from introducing data races.
 	The case of inventing a store just before a normal store is
-	quite special:  It is not possible for some other entity,
-	be it CPU, thread, signal handler, or interrupt handler, to be
-	able to see the invented store unless the code already has
-	a data race, even without the invented store.
+	quite special:
+	It is not possible for some other entity, be it CPU, thread,
+	signal handler, or interrupt handler, to be able to see the
+	invented store unless the code already has a data race, even
+	without the invented store.
 	And if the code already has a data race, it already invokes
 	the dreaded spectre of undefined behavior, which allows the
 	compiler to generate pretty much whatever code it wants,
@@ -2035,9 +2037,9 @@ concurrent code to act in surprising ways.
 Experience thus far indicates that relatively few such surprises will
 be at all pleasant.
 Elimination of store-only variables is especially dangerous in cases
-where external code locates the variable via symbol tables: The
-compiler is necessarily ignorant of such external-code accesses, and
-might thus eliminate a variable that the external code relies upon.
+where external code locates the variable via symbol tables:
+The compiler is necessarily ignorant of such external-code accesses,
+and might thus eliminate a variable that the external code relies upon.
 
 Reliable concurrent code clearly needs a way to cause the compiler to
 preserve the number, order, and type of important accesses to shared
@@ -2592,7 +2594,8 @@ but per-thread variables combine convenience and high performance,
 as will be shown in more detail in
 \cref{sec:count:Statistical Counters}.
 
-\section{The Right Tool for the Job: How to Choose?}
+\section{The Right Tool for the Job:
+					How to Choose?}
 \label{sec:toolsoftrade:The Right Tool for the Job: How to Choose?}
 %
 \epigraph{If you get stuck, change your tools; it may free your thinking.}
Signature · 1 line
2.17.1
#2 lore raw

PATCH 2/6 locking: Break and capitalize after colon

In reply to Akira Yokosawa
---
 locking/locking-existence.tex |  4 +-
 locking/locking.tex           | 98 ++++++++++++++++++++---------------
 2 files changed, 58 insertions(+), 44 deletions(-)
locking/locking-existence.tex +2 -2
index 86aeace7..feb18464 100644
@@ -79,8 +79,8 @@ bugs involving implicit existence guarantees really can happen.
 }\QuickQuizEnd
 
 But the more interesting---and troublesome---guarantee involves
-heap memory: A dynamically allocated data structure will exist until it
-is freed.
+heap memory:
+A dynamically allocated data structure will exist until it is freed.
 The problem to be solved is to synchronize the freeing of the structure
 with concurrent accesses to that same structure.
 One way to do this is with \emph{explicit guarantees}, such as locking.
locking/locking.tex +56 -42

226 lines not on this page · raw message

Signature · 1 line
2.17.1
#3 lore raw

PATCH 3/6 defer: Break and capitalize after colon

In reply to Akira Yokosawa
---
 defer/hazptr.tex         |  9 +++++----
 defer/rcufundamental.tex | 29 ++++++++++++++++-------------
 defer/rcuintro.tex       |  6 ++++--
 defer/rcuusage.tex       | 34 +++++++++++++++++++++-------------
 defer/seqlock.tex        | 12 ++++++++----
 defer/whichtochoose.tex  | 19 ++++++++++++-------
 6 files changed, 66 insertions(+), 43 deletions(-)
defer/hazptr.tex +5 -4
index 47acb0ac..08e133dc 100644
@@ -96,9 +96,9 @@ invocations, \clnref{htr:race2} indicates failure.
 	element.
 }\QuickQuizEnd
 
-The \co{hp_record()} function is quite straightforward: It repeatedly
-invokes \co{hp_try_record()} until the return value is something other
-than \co{HAZPTR_POISON}.
+The \co{hp_record()} function is quite straightforward:
+It repeatedly invokes \co{hp_try_record()} until the return value
+is something other than \co{HAZPTR_POISON}.
 
 \QuickQuiz{
 	Why bother with \co{hp_try_record()}?
@@ -361,7 +361,8 @@ and in other publications~\cite{ThomasEHart2007a,McKenney:2013:SDS:2483852.24838
 }\QuickQuizEndB
 %
 \QuickQuizE{
-	The paper ``Structured Deferral: Synchronization via
+	The paper ``Structured Deferral:
+	Synchronization via
 	Procrastination''~\cite{McKenney:2013:SDS:2483852.2483867}
 	shows that hazard pointers have near-ideal performance.
 	Whatever happened in
defer/rcufundamental.tex +16 -13
index 7435b885..0378b673 100644
@@ -94,9 +94,9 @@ mechanism will be required to mediate among multiple concurrent
 In the Linux kernel, locking is the mechanism of choice, but pretty
 much any synchronization mechanism may be used.
 An example of a particularly lightweight synchronization mechanism is
-\cref{chp:Data Ownership}'s data ownership: If each pointer is
-owned by a particular thread, then that thread may execute
-\co{rcu_assign_pointer()} on that pointer with no additional
+\cref{chp:Data Ownership}'s data ownership:
+If each pointer is owned by a particular thread, then that thread may
+execute \co{rcu_assign_pointer()} on that pointer with no additional
 synchronization overhead.
 
 \QuickQuiz{
@@ -298,12 +298,14 @@ This would mean that an RCU read-side critical section had completely
 overlapped a grace period, which is forbidden (or at the very least
 constitutes a bug in RCU).
 RCU's wait-for-readers guarantee therefore has two parts:
-(1)~If any part of a given RCU read-side critical section precedes
+\begin{enumerate*}[(1)]
+\item If any part of a given RCU read-side critical section precedes
 the beginning of a given grace period, then the entirety of that
 critical section precedes the end of that grace period.
-(2)~If any part of a given RCU read-side critical section follows
+\item If any part of a given RCU read-side critical section follows
 the end of a given grace period, then the entirety of that
 critical section follows the beginning of that grace period.
+\end{enumerate*}
 This definition is sufficient for almost all RCU-based algorithms, but
 for those wanting more,
 simple executable formal models of RCU are available
@@ -434,8 +436,8 @@ way get a valid result.
 Of course, a closer look at
 \cref{fig:defer:Insertion With Concurrent Readers}
 shows that calls to \co{ins_route()} can also result in concurrent
-readers seeing different versions: Either the initial empty list
-or the newly inserted \co{route} structure.
+readers seeing different versions:
+Either the initial empty list or the newly inserted \co{route} structure.
 Note that both reference counting
 (\cref{sec:defer:Reference Counting})
 and hazard pointers
@@ -535,9 +537,10 @@ and with increasing use of hazard pointers in other projects, demonstrates
 that tolerance for such inconsistencies is more common than one might
 imagine.
 This is especially the case given that single-item lookups are much more
-common than traversals:  After all, (1)~concurrent updates are less likely
-to affect a single-item lookup than they are a full traversal, and
-(2)~an isolated single-item lookup cannot detect such inconsistencies.
+common than traversals:
+After all, (1)~concurrent updates are less likely to affect a single-item
+lookup than they are a full traversal, and (2)~an isolated single-item
+lookup cannot detect such inconsistencies.
 
 From a more theoretical viewpoint, there are even some special cases where
 RCU readers can be considered to be fully ordered with updaters, despite
@@ -661,13 +664,13 @@ This section has described the three fundamental components of RCU-based
 algorithms:
 
 \begin{enumerate}
-\item	a publish-subscribe mechanism for adding new data,
+\item	A publish-subscribe mechanism for adding new data,
 
-\item	a way of waiting for pre-existing RCU readers to finish
+\item	A way of waiting for pre-existing RCU readers to finish
 	(see \cref{sec:memorder:RCU} for more detail),
 	and
 
-\item	a discipline of maintaining multiple versions to permit
+\item	A discipline of maintaining multiple versions to permit
 	change without harming or unduly delaying concurrent RCU readers.
 \end{enumerate}
 
defer/rcuintro.tex +4 -2
index a3c9cc58..9b327afa 100644
@@ -302,7 +302,8 @@ This is a classic deadlock situation, and this \IX{deadlock} is avoided
 by forbidding blocking while holding a spinlock.
 
 Again, this same constraint is imposed on reader threads dereferencing
-\co{gptr}: such threads are not allowed to block until after
+\co{gptr}:
+Such threads are not allowed to block until after
 they are done using the pointed-to data item.
 Returning to the second row of
 \cref{fig:defer:Deletion With Concurrent Readers},
@@ -322,7 +323,8 @@ state shown at the bottom of
 \begin{figure}
 \centering
 \resizebox{3in}{!}{\includegraphics{defer/QSBRGracePeriod}}
-\caption{QSBR: Waiting for Pre-Existing Readers}
+\caption{QSBR\@:
+		 Waiting for Pre-Existing Readers}
 \label{fig:defer:QSBR: Waiting for Pre-Existing Readers}
 \end{figure}
 
defer/rcuusage.tex +21 -13
index b3d79d13..0e5ad511 100644
@@ -637,7 +637,8 @@ harmless, including use of the asynchronous interfaces where available
 is a major reason for the rule of thumb that RCU be used in read-mostly
 situations.
 
-\paragraph{Code: Reader-Writer Locking vs.\@ RCU Code}
+\paragraph{Code:
+		 Reader-Writer Locking vs.\@ RCU Code}
 
 In the best case, the conversion from reader-writer locking to RCU
 is quite simple, as shown in
@@ -663,7 +664,8 @@ Wikipedia~\cite{WikipediaRCU}.
 }
 \hspace*{0.9in}\OneColumnHSpace{-0.5in}
 \IfEbookSize{\hspace*{-1.05in}}{}\theverbbox
-\caption{Converting Reader-Writer Locking to RCU: Data}
+\caption{Converting Reader-Writer Locking to RCU\@:
+						    Data}
 \label{lst:defer:Converting Reader-Writer Locking to RCU: Data}
 \end{listing*}
 
@@ -689,7 +691,8 @@ Wikipedia~\cite{WikipediaRCU}.
 }
 \hspace*{0.9in}\OneColumnHSpace{-0.5in}
 \IfEbookSize{\hspace*{-1.05in}}{}\theverbbox
-\caption{Converting Reader-Writer Locking to RCU: Search}
+\caption{Converting Reader-Writer Locking to RCU\@:
+						    Search}
 \label{lst:defer:Converting Reader-Writer Locking to RCU: Search}
 \end{listing*}
 
@@ -717,7 +720,8 @@ Wikipedia~\cite{WikipediaRCU}.
 }
 \hspace*{0.9in}\OneColumnHSpace{-0.5in}
 \IfEbookSize{\hspace*{-1.05in}}{}\theverbbox
-\caption{Converting Reader-Writer Locking to RCU: Deletion}
+\caption{Converting Reader-Writer Locking to RCU\@:
+						    Deletion}
 \label{lst:defer:Converting Reader-Writer Locking to RCU: Deletion}
 \end{listing*}
 
@@ -741,7 +745,8 @@ More-elaborate cases of replacing reader-writer locking with RCU
 may be found
 elsewhere~\cite{NeilBrown2015PathnameLookup,NeilBrown2015RCUwalk}.
 
-\paragraph{Semantics: Reader-Writer Locking vs.\@ RCU Semantics}
+\paragraph{Semantics:
+		      Reader-Writer Locking vs.\@ RCU Semantics}
 
 Reader-writer locking semantics can be roughly and informally summarized
 by the following three temporal constraints:
@@ -937,7 +942,7 @@ waits for any previously acquired references to be released.
 	What gives?
 }\QuickQuizAnswer{
 	This is an effect of the Law of Toy Examples:
-	beyond a certain point, the code fragments look the same.
+	Beyond a certain point, the code fragments look the same.
 	The only difference is in how we think about the code.
 	However, this difference can be extremely important.
 	For but one example of the importance, consider that if we think
@@ -1049,10 +1054,13 @@ misleading.
 Perhaps the best way to think of the relationship between RCU
 and automatic garbage collectors (GCs) is that RCU resembles
 a GC in that the \emph{timing} of collection is automatically
-determined, but that RCU differs from a GC in that: (1)~the programmer
-must manually indicate when a given data structure is eligible
-to be collected, and (2)~the programmer must manually mark the
-RCU read-side critical sections where references might be held.
+determined, but that RCU differs from a GC in that:
+\begin{enumerate*}[(1)]
+\item The programmer must manually indicate when a given data
+structure is eligible to be collected, and
+\item The programmer must manually mark the RCU read-side critical
+sections where references might be held.
+\end{enumerate*}
 
 Despite these differences, the resemblance does go quite deep.
 In fact, the first RCU-like mechanism I am aware of used a
@@ -1528,9 +1536,9 @@ was shown in the previous sections.
 At its core, RCU is nothing more nor less than an API that provides:
 
 \begin{enumerate}
-\item	a publish-subscribe mechanism for adding new data,
-\item	a way of waiting for pre-existing RCU readers to finish, and
-\item	a discipline of maintaining multiple versions to permit change
+\item	A publish-subscribe mechanism for adding new data,
+\item	A way of waiting for pre-existing RCU readers to finish, and
+\item	A discipline of maintaining multiple versions to permit change
 	without harming or unduly delaying concurrent RCU readers.
 \end{enumerate}
 
defer/seqlock.tex +8 -4
index 3eec7b2f..a2649b15 100644
@@ -378,9 +378,12 @@ Both the read-side and write-side critical sections of a sequence lock
 can be thought of as transactions, and sequence locking therefore
 can be thought of as a limited form of transactional memory, which
 will be discussed in \cref{sec:future:Transactional Memory}.
-The limitations of sequence locking are: (1)~Sequence locking restricts
-updates and (2)~sequence locking does not permit traversal of pointers
+The limitations of sequence locking are:
+\begin{enumerate*}[(1)]
+\item Sequence locking restricts updates and
+\item Sequence locking does not permit traversal of pointers
 to objects that might be freed by updaters.
+\end{enumerate*}
 These limitations are of course overcome by transactional memory, but
 can also be overcome by combining other synchronization primitives
 with sequence locking.
@@ -393,8 +396,9 @@ in writer-heavy workloads.\footnote{
 	\url{http://www.1024cores.net/home/lock-free-algorithms/reader-writer-problem/improved-lock-free-seqlock}.}
 On the other hand, in the absence of writers, sequence-lock readers are
 reasonably fast and scale linearly.
-It is only human to want the best of both worlds: fast readers without
-the possibility of read-side failure, let alone starvation.
+It is only human to want the best of both worlds:
+Fast readers without the possibility of read-side failure,
+let alone starvation.
 In addition, it would also be nice to overcome sequence locking's limitations
 with pointers.
 The following section presents a synchronization mechanism with exactly
defer/whichtochoose.tex +12 -7
index 30e5bfa4..2f8a343b 100644
@@ -25,7 +25,8 @@ hazard pointers, sequence locking, and RCU\@.
 This discussion should help you to make an informed choice between
 these techniques.
 
-\subsection{Which to Choose? (Overview)}
+\subsection{Which to Choose?
+			      (Overview)}
 \label{sec:defer:Which to Choose? (Overview)}
 
 \begin{table*}
@@ -70,7 +71,8 @@ these techniques.
 	\bottomrule
 \end{tabularx}
 }
-\caption{Which Deferred Technique to Choose? (Overview)}
+\caption{Which Deferred Technique to Choose?
+					     (Overview)}
 \label{tab:defer:Which Deferred Technique to Choose? (Overview)}
 \end{table*}
 
@@ -166,7 +168,8 @@ Nevertheless, this table should be of great help when choosing between
 these techniques.
 But those wishing more detail should continue on to the next section.
 
-\subsection{Which to Choose? (Details)}
+\subsection{Which to Choose?
+			     (Details)}
 \label{sec:defer:Which to Choose? (Details)}
 
 \begin{table*}
@@ -248,7 +251,8 @@ But those wishing more detail should continue on to the next section.
 	\bottomrule
 \end{tabularx}
 }
-\caption{Which Deferred Technique to Choose?  (Details)}
+\caption{Which Deferred Technique to Choose?
+					     (Details)}
 \label{tab:defer:Which Deferred Technique to Choose?  (Details)}
 \end{table*}
 
@@ -378,8 +382,8 @@ RCU grace periods can also be short, which limits the memory footprint.
 For the few data elements that need longer-lived references, reference
 counting is used.
 This means that the complexity of reference-acquisition failure only
-needs to be dealt with for those few data elements:  The bulk of
-the reference acquisitions are unconditional, courtesy of RCU\@.
+needs to be dealt with for those few data elements:
+The bulk of the reference acquisitions are unconditional, courtesy of RCU\@.
 See \cref{sec:together:Refurbish Reference Counting}
 for more information on combining reference counting with other
 synchronization mechanisms.
@@ -419,7 +423,8 @@ and in combination, the rules of thumb laid out in this section will
 need to be refined.
 However, this section does reflect the current state of the art.
 
-\subsection{Which to Choose? (Production Use)}
+\subsection{Which to Choose?
+			     (Production Use)}
 \label{sec:defer:Which to Choose? (Production Use)}
 
 This section points out a few publicly visible production uses of
Signature · 1 line
2.17.1
#4 lore raw

PATCH 4/6 count: Remove Oxford comma in two-item enumeration list

In reply to Akira Yokosawa
---
 count/count.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
count/count.tex +1 -1
index afe0539b..db4b1144 100644
@@ -1736,7 +1736,7 @@ thread~0 can once again increment the counter locally.
 	There are two purposes for taking this approach:
 	\begin{enumerate*}[(1)]
 	\item To allow thread~0 to use the fastpath for decrements as
-	well as increments, and
+	well as increments and
 	\item To reduce the inaccuracies if all threads are monotonically
 	incrementing up towards the limit.
 	\end{enumerate*}
Signature · 1 line
2.17.1
#5 lore raw

PATCH 5/6 locking: Remove Oxford comma in two-item list

In reply to Akira Yokosawa
---
 locking/locking.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
locking/locking.tex +1 -1
index 580d8766..7ae9a115 100644
@@ -1326,7 +1326,7 @@ when needed rests with the developer.
 It is important to note that unconditionally acquiring an exclusive lock
 has two effects:
 \begin{enumerate*}[(1)]
-\item Waiting for all prior holders of that lock to release it, and
+\item Waiting for all prior holders of that lock to release it and
 \item Blocking any other acquisition attempts until the lock is released.
 \end{enumerate*}
 As a result, at lock acquisition time, any concurrent acquisitions of
Signature · 1 line
2.17.1
#6 lore raw

PATCH 6/6 defer: Remove Oxford comma in two-item list

In reply to Akira Yokosawa
---
 defer/rcuusage.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
defer/rcuusage.tex +1 -1
index 0e5ad511..b08a31d7 100644
@@ -1057,7 +1057,7 @@ a GC in that the \emph{timing} of collection is automatically
 determined, but that RCU differs from a GC in that:
 \begin{enumerate*}[(1)]
 \item The programmer must manually indicate when a given data
-structure is eligible to be collected, and
+structure is eligible to be collected and
 \item The programmer must manually mark the RCU read-side critical
 sections where references might be held.
 \end{enumerate*}
Signature · 1 line
2.17.1
#7 lore raw
In reply to Akira Yokosawa
Quoted 11 lines · Akira Yokosawa

Hi Paul,

Here are colon related tweaks though Chapter 9.

Patches 1/6 -- 3/6 don't change sentences/clauses/phrases except for capitalization.
Patches 4/6 -- 6/6 remove redundant looking Oxford commas in two-item enumeration lists.
However, I'm not sure Patches 4/6 -- 6/6 are the right fixes or not.

Please pick whichever ones you'd like.

After some thought and web searching, I took them all. The missing comma in the numbered list looks a bit strange to me, but the style manuals don't differentiate between numbered and non-numbered lists, so I am willing to have things look strange to avoid yet another perfbook-specific composition rule. ;-)

Quoted 21 lines

NOTE: There is a hunk in Patch 3/6:

Quoted 4 lines
(quoted diff) +0 -0
@@ -535,9 +537,10 @@ and with increasing use of hazard pointers in other projects, demonstrates
 that tolerance for such inconsistencies is more common than one might
 imagine.
 This is especially the case given that single-item lookups are much more

Review and with increasing use of hazard pointers in other projects, demonstrates · line 546

Quoted 10 lines
(quoted diff) +4 -3
-common than traversals:  After all, (1)~concurrent updates are less likely
-to affect a single-item lookup than they are a full traversal, and
-(2)~an isolated single-item lookup cannot detect such inconsistencies.
+common than traversals:
+After all, (1)~concurrent updates are less likely to affect a single-item
+lookup than they are a full traversal, and (2)~an isolated single-item
+lookup cannot detect such inconsistencies.
 
 From a more theoretical viewpoint, there are even some special cases where
 RCU readers can be considered to be fully ordered with updaters, despite

, where the inline enumerated list is not converted to the "enumerate*" list. This one is lead by "After all," not by a colon, and I kept the lowercase words following (1) and (2).

Quoted 2 lines

This level of fluctuation is unavoidable in natural language text, I suppose.

I wordsmithed this passage to get rid of the list entirely. I believe that it now reads better, in addition to avoiding another perfbook-specific special case.

Thanx, Paul

Quoted 28 lines

Thanks, Akira

--
Akira Yokosawa (6):
toolsoftrade, count, SMPdesign: Break and capitalize after colon
locking: Break and capitalize after colon
defer: Break and capitalize after colon
count: Remove Oxford comma in two-item enumeration list
locking: Remove Oxford comma in two-item list
defer: Remove Oxford comma in two-item list

 SMPdesign/SMPdesign.tex       | 23 ++++----
 SMPdesign/beyond.tex          | 19 +++----
 count/count.tex               | 66 ++++++++++++-----------
 defer/hazptr.tex              |  9 ++--
 defer/rcufundamental.tex      | 29 ++++++-----
 defer/rcuintro.tex            |  6 ++-
 defer/rcuusage.tex            | 34 +++++++-----
 defer/seqlock.tex             | 12 +++--
 defer/whichtochoose.tex       | 19 ++++---
 locking/locking-existence.tex |  4 +-
 locking/locking.tex           | 98 ++++++++++++++++++++---------------
 toolsoftrade/toolsoftrade.tex | 31 ++++++-----
 12 files changed, 201 insertions(+), 149 deletions(-)
Signature · 1 line
2.17.1
#8 lore raw
Quoted 39 lines · Paul E. McKenney
Quoted 11 lines · Akira Yokosawa

Hi Paul,

Here are colon related tweaks though Chapter 9.

Patches 1/6 -- 3/6 don't change sentences/clauses/phrases except for capitalization.
Patches 4/6 -- 6/6 remove redundant looking Oxford commas in two-item enumeration lists.
However, I'm not sure Patches 4/6 -- 6/6 are the right fixes or not.

Please pick whichever ones you'd like.

After some thought and web searching, I took them all. The missing comma in the numbered list looks a bit strange to me, but the style manuals don't differentiate between numbered and non-numbered lists, so I am willing to have things look strange to avoid yet another perfbook-specific composition rule. ;-)>

Quoted 21 lines

NOTE: There is a hunk in Patch 3/6:

Quoted 4 lines
(quoted diff) +0 -0
@@ -535,9 +537,10 @@ and with increasing use of hazard pointers in other projects, demonstrates
 that tolerance for such inconsistencies is more common than one might
 imagine.
 This is especially the case given that single-item lookups are much more

Review and with increasing use of hazard pointers in other projects, demonstrates · line 546

Quoted 10 lines
(quoted diff) +4 -3
-common than traversals:  After all, (1)~concurrent updates are less likely
-to affect a single-item lookup than they are a full traversal, and
-(2)~an isolated single-item lookup cannot detect such inconsistencies.
+common than traversals:
+After all, (1)~concurrent updates are less likely to affect a single-item
+lookup than they are a full traversal, and (2)~an isolated single-item
+lookup cannot detect such inconsistencies.
 
 From a more theoretical viewpoint, there are even some special cases where
 RCU readers can be considered to be fully ordered with updaters, despite

, where the inline enumerated list is not converted to the "enumerate*" list. This one is lead by "After all," not by a colon, and I kept the lowercase words following (1) and (2).

Quoted 6 lines
Quoted 2 lines

This level of fluctuation is unavoidable in natural language text, I suppose.

I wordsmithed this passage to get rid of the list entirely. I believe that it now reads better, in addition to avoiding another perfbook-specific special case.

There looks like a typo in the updated passage. Please find a patch below.

Thanks, Akira

Quoted 3 lines

Thanx, Paul

[...]

-------8<---------
From: Akira Yokosawa <[email protected]>
Date: Fri, 9 Jul 2021 08:43:52 +0900
Subject: [PATCH] defer/rcufundamental: Fix typo

---
 defer/rcufundamental.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
defer/rcufundamental.tex +1 -1
index ff3c4bc1..66f9b702 100644
@@ -543,7 +543,7 @@ full-data-structure traversals.
 After all, full-data-structure traversals are much more expensive than
 single-item lookups, so developers are motivated to avoid such traversals.
 Not only are concurrent updates are less likely to affect a single-item
-lookup than they are a full traversal, but is is also the case that an
+lookup than they are a full traversal, but it is also the case that an
 isolated single-item lookup has no way of detecting such inconsistencies.
 As a result, in the common case, such inconsistencies are not just
 tolerable, they are in fact invisible.
Signature · 1 line
2.17.1
#9 lore raw
Quoted 43 lines · Akira Yokosawa
Quoted 42 lines · Paul E. McKenney
Quoted 11 lines · Akira Yokosawa

Hi Paul,

Here are colon related tweaks though Chapter 9.

Patches 1/6 -- 3/6 don't change sentences/clauses/phrases except for capitalization.
Patches 4/6 -- 6/6 remove redundant looking Oxford commas in two-item enumeration lists.
However, I'm not sure Patches 4/6 -- 6/6 are the right fixes or not.

Please pick whichever ones you'd like.

After some thought and web searching, I took them all. The missing comma in the numbered list looks a bit strange to me, but the style manuals don't differentiate between numbered and non-numbered lists, so I am willing to have things look strange to avoid yet another perfbook-specific composition rule. ;-)>

Quoted 23 lines

NOTE: There is a hunk in Patch 3/6:

Quoted 4 lines
(quoted diff) +0 -0
@@ -535,9 +537,10 @@ and with increasing use of hazard pointers in other projects, demonstrates
 that tolerance for such inconsistencies is more common than one might
 imagine.
 This is especially the case given that single-item lookups are much more

Review and with increasing use of hazard pointers in other projects, demonstrates · line 546

Quoted 10 lines
(quoted diff) +4 -3
-common than traversals:  After all, (1)~concurrent updates are less likely
-to affect a single-item lookup than they are a full traversal, and
-(2)~an isolated single-item lookup cannot detect such inconsistencies.
+common than traversals:
+After all, (1)~concurrent updates are less likely to affect a single-item
+lookup than they are a full traversal, and (2)~an isolated single-item
+lookup cannot detect such inconsistencies.
 
 From a more theoretical viewpoint, there are even some special cases where
 RCU readers can be considered to be fully ordered with updaters, despite

, where the inline enumerated list is not converted to the "enumerate*" list. This one is lead by "After all," not by a colon, and I kept the lowercase words following (1) and (2).

This level of fluctuation is unavoidable in natural language text, I suppose.

Quoted 6 lines
Quoted 3 lines

I wordsmithed this passage to get rid of the list entirely. I believe that it now reads better, in addition to avoiding another perfbook-specific special case.

There looks like a typo in the updated passage. Please find a patch below.

Good eyes, queued and pushed, thank you!

Thanx, Paul

Quoted 34 lines

Thanks, Akira

Quoted 3 lines

Thanx, Paul

[...]

-------8<---------
From: Akira Yokosawa <[email protected]>
Date: Fri, 9 Jul 2021 08:43:52 +0900
Subject: [PATCH] defer/rcufundamental: Fix typo

---
 defer/rcufundamental.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
defer/rcufundamental.tex +1 -1
index ff3c4bc1..66f9b702 100644
@@ -543,7 +543,7 @@ full-data-structure traversals.
 After all, full-data-structure traversals are much more expensive than
 single-item lookups, so developers are motivated to avoid such traversals.
 Not only are concurrent updates are less likely to affect a single-item
-lookup than they are a full traversal, but is is also the case that an
+lookup than they are a full traversal, but it is also the case that an
 isolated single-item lookup has no way of detecting such inconsistencies.
 As a result, in the common case, such inconsistencies are not just
 tolerable, they are in fact invisible.
Signature · 1 line
2.17.1