【发布时间】:2015-06-30 05:15:13
【问题描述】:
为什么有人会使用新的互斥锁来锁定?
public class Job
{
private static Mutex mutex = new Mutex();
public void Execute(Context context)
{
lock (mutex)
{
// some work here
}
// some more work here
}
}
【问题讨论】:
标签: c# .net multithreading locking mutex