Skip to content

Commit 8af0aa6

Browse files
committed
Update core classes description, define better crash
1 parent b2ba23a commit 8af0aa6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/synchronization.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ Notes:
139139
### Core classes
140140

141141
`Mutex`, `Monitor`, `Queue` have to work correctly on each implementation. Ruby
142-
implementations should not crash when e.g. Array is used in parallel environment
143-
but it may loose updates etc.
142+
implementation VMs should not crash when for example `Array` or `Hash` is used
143+
in parallel environment but it may loose updates, or raise Exceptions. (If
144+
`Array` or `Hash` were synchronized it would have too much overhead when used
145+
in a single thread.)
144146

145147
> TODO: This section needs more work: e.g. Thread.raise and similar is an open
146148
> issue, better not to be used.

0 commit comments

Comments
 (0)