GIAC
GSSP-.NET · Question #425
(Topic 4) You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You are creating a Windows service application using the .NET…
The correct answer is E. Use the ThreadPool.QueueUserWorkItem method. See the full explanation below for the reasoning.
Question
- (Topic 4)
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You are creating a Windows service application using the .NET Framework. The service is used to execute several tasks that require background processing. You do not want to actively manage threads in the service application, but you must make sure that security checks are performed during the execution of the task. What will you do to accomplish the task?
Options
- AUse the ThreadPool.UnsafeQueueUserWorkItem method.
- Bthread2 raises its own priority
- CUse the Thread.Start method.
- DUse the Thread.Resume method.
- EUse the ThreadPool.QueueUserWorkItem method.
How the community answered
(27 responses)- A15% (4)
- B4% (1)
- C7% (2)
- E74% (20)
Community Discussion
No community discussion yet for this question.