Skip to content

Commit 90f6f64

Browse files
author
Vladimir Kotal
committed
fix wording
1 parent be584fc commit 90f6f64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

synchro.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@
203203
\begin{itemize}
204204
\item 2 ways of waiting:
205205
\begin{description}
206-
\item[active (busy waiting)] -- process test a condition in a cycle while it
207-
is not true.
206+
\item[active (busy waiting)] -- a process tests a condition in a cycle while
207+
it is not true.
208208
\item[passive] -- a process registers itself in the kernel as a waiting for
209209
the condition and goes asleep. The kernel wakes it up if the condition becomes
210210
true.
@@ -221,12 +221,12 @@
221221
\sltitle{Synchronization mechanisms}
222222
\begin{itemize}
223223
\item theoretical solution -- mutual exclusive algorithms (Dekker
224-
1965, Peterson 1981)
224+
1965, Peterson 1981)
225225
\item interrupt disable (1 CPU), special \emph{test-and-set} instructions
226226
\item \emsl{lock-files}
227227
\item tools offered by the operating system:
228228
\begin{itemize}
229-
\item \emsl{semaphores} (POSIX, System V IPC)
229+
\item \emsl{semaphores} (POSIX, System V IPC)
230230
\item \emsl{file level locking} (\texttt{fcntl()}, \texttt{flock()})
231231
\item thread synchronization: \emsl{mutexes} (surround critical sections,
232232
only one thread can hold the mutex), \emsl{condition variables}

0 commit comments

Comments
 (0)