From 74b9492479b60b79157218892c27d1963994fa4d Mon Sep 17 00:00:00 2001 From: Helena Chapman Date: Thu, 28 Oct 1999 18:06:45 +0000 Subject: [PATCH] ICU-72 Documentation update X-SVN-Rev: 136 --- icu4c/docs/mutex.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/icu4c/docs/mutex.html b/icu4c/docs/mutex.html index a5b1a4d085..a0f4cd1311 100644 --- a/icu4c/docs/mutex.html +++ b/icu4c/docs/mutex.html @@ -57,6 +57,18 @@ necessary, however time spent inside the mutex is then minimized.

Developers implementing the Mutex are not required to provide reentrant-safe implementations.

+

Using collators in multi-threaded environment

+ +

Instances of Collator class are meant to be used on per thread basis. Although it is +possible to have multiple threads access one Collator there is no guarante that such a +construct will work, especially if number of threads grows over 10. There are no +limitations on number of threads if each thread creates its own separate instance of +Collator class.

+ +

Test results have shown that case with 50 threads accessing 1 collator fails with a +crash after 20 threads are reached. However, a test with 50 threads creating separate +instances works well.

+

Implementations

On Win32 platforms, a reentrant mutex is most naturally implemented on top of a