Hello to everyone,

After a recent question regarding libbzip2 on this list has send me to
the source code, i've stumbled upon this comment : "The low-level part
of the library has no global variables and is therefore thread-safe."
on the documentation page :
http://www.ugcs.caltech.edu/info/bzip2/manual_3.html#SEC14

What I would like to know is why.

Doesn't the kernel allocate each thread his own memory space
(including for var's which are global for that thread)?
Should i take extreme measures to avoid using globals in my code ?

Thank you.

-- 
Maxim Vexler (hq4ever).

[CODE] for i in `..::LINUX::..`; do $i CHANGE THE WORLD; done [/CODE]

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to