R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of the following is used for thread safety in .NET?

  • (A) static
  • (B) lock
  • (C) override
  • (D) sealed

Explanation by: Ram Sharma
The `lock` keyword ensures that only one thread accesses a resource at a time.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.