Anybody can tell me what is a Mt-safe function?
Is there a list of MT-Safe function?
Thanks in advance.
o oooo o o
o o o o o O====OIIIIIIIIIIIIII> AVILES-ASTURIAS-SPAIN
o o oooo o o I
MT-Level: Libraries are classified into four categories which define their
ability to support multiple threads. Manual pages containing routines that
are of multiple or differing levels show this within their NOTES or USAGE
( See attributes(5) )
I do not understand the difference between Safe and MT-Safe.
Safe: ...Often overlooked is the fact that the result of this Safe interface
or safe code segment can have global consequences that affect all threads.
MT-Safe: Note that a library can be safe to use, but not MT-Safe. For
example, surrounding an entire library with a monitor makes the library
Safe, but it supports no concurrency so it is not considered MT-Safe. An
MT-Safe library must permit a reasonable amount of concurrency. (This
definition's purpose is to give precision to what is meant when a library is
described as Safe. The definition of a Safe library does not specify if the
library supports concurrency. The MT-Safe definition makes it clear that the
library is Safe, and supports some concurrency. This clarifies the Safe
definition, which can mean anything from being single threaded to being any
degree of multithreaded.)
Key fingerprint = EB65 70AA 55C0 33AA 2E5A 5B59 42E9 9326 B16C F7F3
PGP Public Key Server: http://www.keyserver.net
Computer Graphics and Geometry Modeling Laboratory,
Computer Science and Information Engineering Department,
National Chiao-Tong University, Taiwan
ICQ Number: 86384491
TEL: +886-3-5750828 ext.125
Address: 13F-1, No.6, Lane 99, Rd. Puding, Hsinchu City, Taiwan.