A

Admin • 833.24K Points
Coach

Q. What is the purpose of `Mutex<T>` in Rust?

  • (A) Shared immutable memory
  • (B) Thread synchronization
  • (C) Memory leak prevention
  • (D) Compile-time type checking
  • Correct Answer - Option(B)
  • Views: 35
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin

`Mutex<T>` provides mutual exclusion to protect shared data across threads.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.