1.

In HandlePut(object o), o represents?(a) Null(b) Zero(c) Empty(d) OriginI had been asked this question in homework.My question comes from Multithreading topic in chapter Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Correct choice is (a) Null

The explanation is: void HandlePut(object o) method puts 0 into BUFFER. The new value in the buffer replaces the old one. The method PERFORMS the NECESSARY locking to enable safe use of the buffer from multi threads. Object o MAY be NULL.



Discussion

No Comment Found

Related InterviewSolutions