如何实现System.Threading.Monitor [英] how to implement System.Threading.Monitor

查看:74
本文介绍了如何实现System.Threading.Monitor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮我举一个C#.NET中的示例,如何在线程同步中使用System.Threading.Monitor....

please help me out with an example in C#.NET how to use System.Threading.Monitor in thread synchronization....

推荐答案

/> 您可以阅读MSDN文章,无论监视器 [ [
Hi,
you can read the MSDN article regardless Monitors[^].
For simplicity I would use lock statement in C# language, that defines the same functionality as Monitor, but with a simpler syntax. You may consult this[^] for details.
Regards


这篇关于如何实现System.Threading.Monitor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆