> What I'd like to know is if the following structures are basically
> just a memory blob with some bits that are fiddled with, or if it's a
> handle to some bulkier resource.  It's probably OK to create, say,
> 10000 of the former without ay problem, the latter would create
> problems in those quantities:
>
>        pthread mutexes
>
>        Windows critical sections

critical sections are just memory blobs. there is no limit on their count.
the maximum number of unnamed mutexes on windows NT is huge too. check out
thread from july: Does anyone know how to fix Multithreading??

Toomas Kiisk ([EMAIL PROTECTED]) reported that he was able to create more
than 300 000 unnamed mutexes without problems.

using critical sections for intra-application locking is preferrable
because they are much faster than mutexes (more than 50 times).

arne

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to