You have the following class definition.

You discover that when you execute the following code, the SpawnTasks method enters an infinite loop.

You need to prevent the SpawnTasks method from entering an infinite loop.
Which two changes should you make to the code? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Select all that apply, then click Submit answer.
-
○
Add a property to the ProcessManagement class. Modify the property to allow only positive values to be stored in the DegreeOfParallelism member variable.
-
○
Add a property to the ProcessManagement class. Modify the property to allow only positive values to be stored in the NumberOfTasks member variable.
-
○
Change the accessor of the ProcessManagement class to internal.
-
○
Change the accessor of the DegreeOfParallelism member variable to private.
-
○
Change the accessor of the SpawnTasks method to private.
