由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - 一个关于 critical section 的作业题
相关主题
Execute file under a UNC path in Matlab问大侠Matlab编译成C的问题
Re: A stupid question -- to Bremen(ottoHow to write a User Interface?
integration question[转载] 一个gnuplot的问题
Portland fortran problem, need help!一个matlab的问题,高手帮帮忙
偶也问一fortran问题IDL一问
A question about DQS3.3.2MATLAB with -nojvm option
c++变异错误问题A MATLAB GUI Design question
Linux下的 GDB怎么用啊?问一个简单的HTML问题。
相关话题的讨论汇总
话题: total话题: count话题: 作业题话题: processes话题: critical
进入Computation版参与讨论
1 (共1页)
s***c
发帖数: 50
1
suppose two concurrent process are running the following code:
shared total = 0;
void foo()
{
for(int count=1; count<=50; count++)
total++;
}
2个process 共享那个total 变量。The two processes may execute at any relative
speed.
问: what's the lower bound of value of "total" when both processes have
completed.
多谢了先!!
l******n
发帖数: 9344
2
50?

relative

【在 s***c 的大作中提到】
: suppose two concurrent process are running the following code:
: shared total = 0;
: void foo()
: {
: for(int count=1; count<=50; count++)
: total++;
: }
: 2个process 共享那个total 变量。The two processes may execute at any relative
: speed.
: 问: what's the lower bound of value of "total" when both processes have

1 (共1页)
进入Computation版参与讨论
相关主题
问一个简单的HTML问题。偶也问一fortran问题
Javascript 简单一问。A question about DQS3.3.2
关于sortrowsc函数无法使用的问题(Matlab 1.6版)c++变异错误问题
请指教一个简单的函数如何保证thread safe?Linux下的 GDB怎么用啊?
Execute file under a UNC path in Matlab问大侠Matlab编译成C的问题
Re: A stupid question -- to Bremen(ottoHow to write a User Interface?
integration question[转载] 一个gnuplot的问题
Portland fortran problem, need help!一个matlab的问题,高手帮帮忙
相关话题的讨论汇总
话题: total话题: count话题: 作业题话题: processes话题: critical