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
88resources should not be accessed by multiple processes at the same time.
99Symfony's :doc: `Lock component </components/lock >` provides a locking mechanism to ensure
1010that 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.
1212
1313The following example shows a typical usage of the lock::
1414
@@ -189,7 +189,7 @@ Locking a Dynamic Resource
189189--------------------------
190190
191191Sometimes 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
193193showed how to lock the ``$pdf->getOrCreatePdf('terms-of-use') `` for everybody,
194194now let's see how to lock ``$pdf->getOrCreatePdf($version) `` only for
195195processes asking for the same ``$version ``::
You can’t perform that action at this time.
0 commit comments