Legend:
- Unmodified
- Added
- Removed
-
Content
r1 r2 87 87 ne of This is the secoa thread. 88 88 Tnd line of ahis is th thread.e third line of a thread. 89 89 90 90 This is the third line of a thread. 91 91 92 However, the method uses *mut al exclusion* to ensure that no two calls overlap one another in it's *critical section*. A critical section is any portion of code that cannot be accessed by multiple threads if it is to function properly. So lets say you wanted your two threads to produce their outputs sequentially like so.92 However, the method uses *mutual exclusion* to ensure that no two calls overlap one another in it's *critical section*. A critical section is any portion of code that cannot be accessed by multiple threads if it is to function properly. So lets say you wanted your two threads to produce their outputs sequentially like so. 93 93 94 94 .. code:: text 95 95 96 96 This is the first line of a thread. 97 97 This is the second line of a thread.