当前位置: 首页 > news >正文

西安网站设计师Wordpress网站能做seo吗

西安网站设计师,Wordpress网站能做seo吗,北京市建筑工程装饰集团有限公司,九歌人工智能诗歌写作网站ManualResetEvent 允许线程通过发信号互相通信。通常#xff0c;此通信涉及一个线程在其他线程进行之前必须完成的任务。 public static ManualResetEvent mre new ManualResetEvent(false); ManualResetEvent建立时是把false作为start的初始状态#xff0c;这个类用于通知另…ManualResetEvent 允许线程通过发信号互相通信。通常此通信涉及一个线程在其他线程进行之前必须完成的任务。 public static ManualResetEvent mre new ManualResetEvent(false); ManualResetEvent建立时是把false作为start的初始状态这个类用于通知另一个线程让它等待一个或多个线程。注意为了通知或监听同一个线程所有的其它线程都能访问那个类。 等待线程这样写   mre.WaitOne(); 这将引起等待线程无限期的阻塞并等待类来通知。 发信号的线程应该这样   mre.Set(); 这样类就会被通知值变成true等待线程就会停止等待。在通知事件发生后我们就可以使用下面语句把线程置于非终止状态导致线程阻止   mre.Reset();一个测试的例子 using System;using System.Threading;namespace ThreadingTester{    class ThreadClass    {        public static ManualResetEvent mre  new ManualResetEvent(false);        public static void trmain()        {            Thread tr  Thread.CurrentThread;            Console.WriteLine(thread: waiting for an event);            mre.WaitOne();            Console.WriteLine(thread: got an event);            for (int x  0; x  10; x)            {                Thread.Sleep(1000);                mre.WaitOne();                Console.WriteLine(tr.Name  :   x);            }        }        static void Main(string[] args)        {            Thread thrd1  new Thread(new ThreadStart(trmain));            thrd1.Name  thread1;            thrd1.Start();            for (int x  0; x  10; x)            {                Thread.Sleep(900);                Console.WriteLine(Main:  x);                if (5  x) mre.Set();                if (6  x) mre.Reset();                if (8  x) mre.Set();            }            while (thrd1.IsAlive)            {                Thread.Sleep(1000);                Console.WriteLine(Main: waiting for thread to stop);            }        }    }} 运行的结果为thread: waiting for an event Main:0 Main:1 Main:2 Main:3 Main:4 Main:5 thread: got an event Main:6 Main:7 Main:8 thread1: 0 Main:9 thread1: 1 Main: waiting for thread to stop thread1: 2 Main: waiting for thread to stop thread1: 3 Main: waiting for thread to stop thread1: 4 Main: waiting for thread to stop thread1: 5 Main: waiting for thread to stop thread1: 6 Main: waiting for thread to stop thread1: 7 Main: waiting for thread to stop thread1: 8 Main: waiting for thread to stop thread1: 9 Main: waiting for thread to stop 转载于:https://www.cnblogs.com/fengfeng/archive/2008/06/24/1229037.html
http://www.zqtcl.cn/news/718295/

相关文章:

  • 企业做网站怎么做高校档案室网站建设
  • 辽宁省建设厅网站升级期货交易软件定制开发
  • 网站建设公司工资设置mufen wordpress
  • 资阳网站网站建设月夜直播免费完整版
  • 自己的网站打不开了网站建设维护成本
  • 最便宜做网站c2c网站建站的标准
  • 家里电脑做网站服务器下载中国移动商旅100最新版本
  • 深圳建站公司开发费用做网站网页的工作怎么样
  • 网站工程师平均工资网站开发合同里的坑
  • 南通公司建站模板品牌网站建设小蝌蚪
  • 网站备案号 有效期微信小程序开发视频完整教程
  • 给公司做网站需要什么信息html制作百度登录页面
  • 济南市建设执业资格注册中心网站小程序源码模板下载
  • 免费做网站怎么做网站网页生成app制作
  • 网站建设中的财务预算广州网站制作
  • 经营范围网站建设wordpress主题去除友情链接
  • ip开源网站FPGA可以做点什么国外购物平台排行榜前十名
  • 温州网站推广优化公司专业做网站建设公司排名
  • 网站广告推广哪家好wordpress漏洞大全
  • 做a小视频免费观看网站视觉传达设计网站
  • 网站建设属于网络还是软件服务器销售网站源码
  • 上海建设工程咨询网 首页郑州seo野狼
  • 建设网站需要注意什么手续禅城网站设计
  • 重庆网站页面优化wordpress fm
  • 淄博网站建设企业做网站原型图
  • 电子商务网站开发视频软件研发过程管理
  • 网站建设实施计划包括wordpress编程视频教程
  • 谈谈你对企业网站的页面设计苏州住房和城乡建设局网站网签
  • 企业建网站服务庆阳网站制作
  • 级a做爰片免费视网站可信赖的南昌网站建设