hi friends, In M$'s windows, there is a mechanism called Thread Local Storage (TLS),by which each thread in a multithreaded process allocates storage for thread-specific data. So, this type of storage is not shared among threads of a process. M$'s C compiler includes a key word to support this. For example, the following code declares an integer thread local variable and initializes it with a value: __declspec( thread ) int tls_i = 1; I'm puzzled about how this is implemented. I hope someone can talk about it, and most importantly, is something similar implemented in Linux? regards, wangr. -- To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null