File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ When a program runs concurrently, some part of code which modify shared
8
8
resources should not be accessed by multiple processes at the same time.
9
9
Symfony's :doc: `Lock component </components/lock >` provides a locking mechanism to ensure
10
10
that only one process is running the critical section of code at any point of
11
- time to prevent race condition from happening.
11
+ time to prevent race conditions from happening.
12
12
13
13
The following example shows a typical usage of the lock::
14
14
@@ -189,7 +189,7 @@ Locking a Dynamic Resource
189
189
--------------------------
190
190
191
191
Sometimes the application is able to cut the resource into small pieces in order
192
- to lock a small subset of process and let other through. The previous example
192
+ to lock a small subset of processes and let others through. The previous example
193
193
showed how to lock the ``$pdf->getOrCreatePdf('terms-of-use') `` for everybody,
194
194
now let's see how to lock ``$pdf->getOrCreatePdf($version) `` only for
195
195
processes asking for the same ``$version ``::
You can’t perform that action at this time.
0 commit comments