Which of the following are the considerations that you must keep in mind when logging events with multithreaded components?

You work as a Software Developer for ABC Inc. You develop a multi-threaded application named MyMultThreadApp using Visual Studio .NET. The application logs all warning and informational messages in an event log that keeps track of significant events when the application is running. The event log records information that might be useful for troubleshooting or performance analysis.

Which of the following are the considerations that you must keep in mind when logging events with multithreaded components? Each correct answer represents a complete solution. Choose three.
A . An exclusive lock should be obtained on the log to avoid race conditions.
B . Each shared component should be thread-safe when interacting with an event log.
C . The System.Threading namespace should be used to record the identity of each thread for logging messages.
D . The Debug and Trace classes should be used to log events.

Answer: A,B,C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments