in Programming language course my professor take an example.

Suppose the following code:

int x=initialization();
...
...


threads t1 to t100 needs the initial value of variable x for their computation and t1 need to change the x, which transfer of parameter for computethread, evaluatethread is preferred?

my professor say:

1) call by value result

2) call by ref


is preferred for sending x to computethread, evaluatethread, why call by result or call by name or this order like 2) call by value result, 1) call by ref is not preferred? why he conclude these are better?

• Please don't use words like "Big advanced challenge" in the title of your question. They convey no information at all to anyone who might read the question. – David Richerby Oct 17 '14 at 18:07
• Please don't post the same question to multiple sites. – svick Oct 18 '14 at 1:28