Intermediate Rust
Q75 / 100

What is Rust's RwLock<T>?

Correct! Well done.

Incorrect.

The correct answer is B) A synchronization primitive allowing multiple concurrent readers or one exclusive writer

B

Correct Answer

A synchronization primitive allowing multiple concurrent readers or one exclusive writer

Explanation

RwLock.read() can be held by many threads simultaneously. RwLock.write() requires exclusive access. Use when reads are frequent and writes are rare.

Progress
75/100