M
_mario.lat
hallo,
what does it means "the function is not thread-safe"?
thak you in advance,
Mario.
what does it means "the function is not thread-safe"?
thak you in advance,
Mario.
try http://en.wikipedia.org/wiki/Thread-safety for details, and negatehallo,
what does it means "the function is not thread-safe"?
thak you in advance,
Mario.
_mario.lat said:what does it means "the function is not thread-safe"?
Think of a thread as a synonym for process.
_mario.lat said:hallo,
what does it means "the function is not thread-safe"?
Jack Klein said:Why? It is an incomplete and inadequate definition, and it does not
agree with the C standards's definition of "thread".
Oh, wait a minute, there is no C standard definition of "thread".
So why are you spewing incorrect, off-topic rubbish?
osmium said:Number 1. Because it's an immoderate group and I wanted to. Is that so
hard to figure out? Or was it a rhetorical question? The OP may get more
and better help out of the link appended here, it is more complete.
Number 2. I thought the Wikipedia link he was given was remarkably
unhelpful, IIRC it started talking about threads without saying what a
thread is.
I thought what I said might possibly be more helpful than
harmful. Since about 70% of the threads on this and c.l.c++ groups are
about off-topicness, do not top post, snip signatures, do not snip
attributions, signatures must be introduced by --, no more than four lines
on a signature, read the FAQ, this is off topic, and general net etiquette I
thought what I said was at least related to computers rather than a medium
for talking about computers. Do you suppse writers spend countless hours
discussing the merits of different pencils and papers? "Spew" sounds like
an unfriendly word to me so I will wish you good day.
_mario.lat said:what does it means "the function is not thread-safe"?
osmium said:Since about 70% of the threads on this and c.l.c++
groups are about off-topicness, do not top post, snip signatures, do
not snip attributions, signatures must be introduced by --, no more
than four lines on a signature, read the FAQ, this is off topic, and
general net etiquette
[/QUOTE]what does it means "the function is not thread-safe"?
It means that the function is likely to behave incorrectly if you call it
from multiple <OT>threads</OT>. The canonical example is strtok().
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.