A

Admin • 833.24K Points
Coach

Q. Which function creates a thread in Rust?

  • (A) thread::start
  • (B) std::thread::spawn
  • (C) new_thread()
  • (D) async_thread()
  • Correct Answer - Option(B)
  • Views: 26
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin

`std::thread::spawn` creates a new thread of execution.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.