GIAC
GSSP-.NET · Question #238
(Topic 2) You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create a Windows application using the .NET…
The correct answer is C. It will throw a SemaphoreFullException. See the full explanation below for the reasoning.
Question
- (Topic 2)
You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create a Windows application using the .NET Framework. You create a Semaphore class instance in the application by using the following code snippet:
... tSema.Release(6); What will the above code segment do?
Options
- AIt will set the maximum count for the semaphore to 6.
- BIt will set the initial count for the semaphore to 5.
- CIt will throw a SemaphoreFullException.
- DIt will throw a ThreadAbortException.
How the community answered
(29 responses)- A3% (1)
- B10% (3)
- C83% (24)
- D3% (1)
Community Discussion
No community discussion yet for this question.