S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What will happen if a thread panics in Rust?

  • (A) Whole program crashes
  • (B) Thread stops but others continue
  • (C) It retries execution
  • (D) Program restarts
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
A panic in one thread does not affect others unless joined.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.