Question: C# Question Please highlight the 1 correct option from 4 given at bottom What is the following code an example of? private static object objA;

C# Question

Please highlight the 1 correct option from 4 given at bottom

What is the following code an example of?

private static object objA;

private static object objB;

private static void performTaskA()

{

lock (objB)

{

Thread.Sleep(1000);

lock (objA) { }

}

}

private static void PerformTaskB()

{

lock (objA)

{

lock (objB) { }

}

}

  • a deadlock

  • thread mismanagement

  • a private class that uses multithreading

  • multithread coding

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!