From a987af021d2d65b1b52e8e7759dbf030533e2bac Mon Sep 17 00:00:00 2001 From: Magnus Henoch Date: Tue, 11 Dec 2018 15:26:37 +0000 Subject: Fix typos in atomics.xml and counters.xml --- erts/doc/src/atomics.xml | 2 +- erts/doc/src/counters.xml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/erts/doc/src/atomics.xml b/erts/doc/src/atomics.xml index 3fca92fb97..82b8ab4aa6 100644 --- a/erts/doc/src/atomics.xml +++ b/erts/doc/src/atomics.xml @@ -30,7 +30,7 @@ mutable atomic variables. The implementation utilizes only atomic hardware instructions without any software level locking, which makes it very efficient for concurrent access. The atomics are organized into - arrays with the follwing semantics:

+ arrays with the following semantics:

Atomics are 64 bit integers.

diff --git a/erts/doc/src/counters.xml b/erts/doc/src/counters.xml index ba4a22759f..a7b6c61457 100644 --- a/erts/doc/src/counters.xml +++ b/erts/doc/src/counters.xml @@ -29,7 +29,7 @@

This module provides a set of functions to do operations towards shared mutable counter variables. The implementation does not utilize any software level locking, which makes it very efficient for concurrent - access. The counters are organized into arrays with the follwing + access. The counters are organized into arrays with the following semantics:

@@ -80,7 +80,7 @@ atomics (Default)

Counters will be sequentially consistent. If write - operation A is done sequencially before write operation B, then a concurrent reader + operation A is done sequentially before write operation B, then a concurrent reader may see none of them, only A, or both A and B. It cannot see only B.

write_concurrency @@ -90,7 +90,7 @@ inconsistency and memory consumption per counter.

Read operations may see sequentially inconsistent results with regard to concurrent write operations. Even if write operation A is done - sequencially before write operation B, a concurrent reader may see any + sequentially before write operation B, a concurrent reader may see any combination of A and B, including only B. A read operation is only guaranteed to see all writes done sequentially before the read. No writes are ever lost, but will eventually all be seen.

@@ -140,11 +140,11 @@ Ix.

Despite its name, the write_concurrency optimization does not - improve put. A call to put is a relative heavy + improve put. A call to put is a relatively heavy operation compared to the very lightweight and scalable add and sub. The cost for a put with - write_concurrency is lika a get + write_concurrency is like a get plus a put without write_concurrency.

-- cgit v1.2.3