Which of the following statements is true?

  • 2023-11-15 03:41:40
  • OS

Which of the following statements is true?

A.Operations on atomic integers do not require locking.

B.Operations on atomic integers do require additional locking.

C.Linux only provides the atomic_inc() and atomic_sub() operations.

D.Operations on atomic integers can be interrupted.

正确答案是A