File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 149149inconsistent state, e.g. wrongly connected linked list, mismatched database
150150indexes etc. It is possible to say that critical section is code which accesses
151151or modifies resource shared with multiple processes (or threads) and therefore
152- access to such code should be synchronized. Critical section should be as
152+ access to such code should be synchronized. A critical section should be as
153153short as possible to limit contention. The second definition is more generic,
154- it can also include situations where only one process (or thread) can change
155- the state however if this is not happening, more processes can read
154+ it can also include situations where only one process (or thread) can change the
155+ state but while that is not happening, more processes can read it
156156simultaneously.
157157\end {itemize }
158158
You can’t perform that action at this time.
0 commit comments