Changeset 0ec4eb0 for doc/theses/colby_parsons_MMAth/text/channels.tex
- Timestamp:
- Jul 4, 2023, 1:10:30 PM (11 months ago)
- Branches:
- master
- Children:
- b2ecd48
- Parents:
- 930a800
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/colby_parsons_MMAth/text/channels.tex
r930a800 r0ec4eb0 80 80 This approach is similar to wait morphing for locks~\cite[p.~82]{Butenhof97} and improves performance in a few ways. 81 81 First, each thread interacting with the channel only acquires and releases the internal channel lock once. 82 As a result, contention on the internal lock is decreased , as only entering threads compete for the lock asunblocking threads do not reacquire the lock.82 As a result, contention on the internal lock is decreased; only entering threads compete for the lock since unblocking threads do not reacquire the lock. 83 83 The other advantage of Go's wait-morphing approach is that it eliminates the bottleneck of waiting for signalled threads to run. 84 84 Note, the property of acquiring/releasing the lock only once can also be achieved with a different form of cooperation, called \Newterm{baton passing}.
Note: See TracChangeset
for help on using the changeset viewer.