You can simulate atomicity by ensuring that ________.

a. at least one thread carries out its operations on an object at a time
b. two threads carry out their operations on an object in parallel
c. only one thread carries out its operations on an object at a time
d. None of the above.

c. only one thread carries out its operations on an object at a time

Computer Science & Information Technology

You might also like to view...

A(n) ____________ control structure directs the computer to repeat one or more statements until a certain condition is met.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What is wrong with this function?

```void Multiply( int x, int y ) { int z; z = x * y; return z; }``` A. You can’t have 2 input arguments. B. Multiply doesn’t know what z is. C. The return type is void. D. There is nothing wrong with it.

Computer Science & Information Technology