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
Get step-by-step solutions from verified subject matter experts
