该函数不是线程安全的?这是什么意思? [英] the function is not thread-safe? what does it means?
问题描述
你好,
这是什么意思这个功能不是线程安全的?
提前告诉你,
马里奥。
hallo,
what does it means "the function is not thread-safe"?
thak you in advance,
Mario.
推荐答案
_mario.lat skrev:
_mario.lat skrev:
hallo,
这是什么意思功能不是线程安全的?
提前告诉你,
马里奥。
hallo,
what does it means "the function is not thread-safe"?
thak you in advance,
Mario.
尝试 http ://en.wikipedia.org/wiki/Thread-safety 了解详情,并否定
答案:D
try http://en.wikipedia.org/wiki/Thread-safety for details, and negate
the answer :D
" _mario.lat"写道:
"_mario.lat" wrote:
这是什么意思该功能不是线程安全的?
what does it means "the function is not thread-safe"?
将线程视为进程的同义词。一个过程不是一个程序,而b $ b反之亦然。有些东西叫做叉子和加入第二个过程
可以_spawned_。普通的简单程序,例如学生写的只有一个线程或进程只有
,因此约束不会受到限制或者有趣。但是这样的程序处于复杂性的下限,在这个维度上最低价格为
。
Think of a thread as a synonym for process. A process is not a program and
vice versa. There are things called "fork" and "join" where a second process
can be _spawned_. Ordinary simple programs, such as a student writes have
only a single thread or process, so the constraint would not be limiting or
interesting. But such programs are at the lower limit of complexity, at
least in this dimension.
On Sun,2007年5月27日05:24: 22-0700,锇 < r1 ******** @ comcast.net>
在comp.lang.c中写道:
On Sun, 27 May 2007 05:24:22 -0700, "osmium" <r1********@comcast.net>
wrote in comp.lang.c:
" _mario.lat"写道:
"_mario.lat" wrote:
这是什么意思该功能不是线程安全的?
what does it means "the function is not thread-safe"?
将线程视为进程的同义词。
Think of a thread as a synonym for process.
为什么?这是一个不完整和不充分的定义,它并不符合C标准对线程的定义。
哦,等等一分钟,没有C标准定义的线程。
那你为什么要喷出不正确的,偏离主题的垃圾?
-
Jack Klein
主页: http ://JK-Technology.Com
常见问题解答
comp.lang.c http://c-faq.com/
comp.lang.c ++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c ++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
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?
--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
这篇关于该函数不是线程安全的?这是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!