Changeset dd3baf4
- Timestamp:
- May 30, 2023, 5:48:55 PM (18 months ago)
- Branches:
- ast-experimental, master
- Children:
- b51b2a6
- Parents:
- 2cb8bf71
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/colby_parsons_MMAth/text/channels.tex
r2cb8bf71 rdd3baf4 74 74 This approach is similar to wait morphing for locks~\cite[p.~82]{Butenhof97} and improves performance in a few ways. 75 75 First, each thread interacting with the channel only acquires and releases the internal channel lock once. 76 As a result, contention on the internal lock is decreased, threads only compete for the lock upon entry,as unblocking threads do not reacquire the lock.76 As a result, contention on the internal lock is decreased, as only entering threads compete for the lock as unblocking threads do not reacquire the lock. 77 77 The other advantage of Go's wait-morphing approach is that it eliminates the bottleneck of waiting for signalled threads to run. 78 78 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.