8. Which of the followings is an example of a race condition in a multi-threaded program?

(A) A thread waiting indefinitely for a resource.

(B) A deadlock caused by two threads trying to acquire each other's locks.

(C) Two threads executing concurrently and attempting to access shared data without synchronization.

(D) A thread executing multiple times when it should only execute once.

(E) None of the above.

答案:登入後查看
統計: 尚無統計資料