我正在写一个C#应用程序.我有(一种)日志记录类.并且许多线程将使用此日志记录类.如何使这个类线程安全?我应该把它作为单身人士吗?有什么最好的做法?有没有关于如何使其成为线程安全的文档?
谢谢
c# multithreading thread-safety
c# ×1
multithreading ×1
thread-safety ×1