上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 29 下一页
摘要: 写的一部分有问题 参考了别人一部分 阅读全文
posted @ 2016-06-28 21:02 尘梦 阅读(558) 评论(1) 推荐(0)
摘要: sum=$sum; //总记录数 $this->page_show=$row; //每页显示 $this->totalpage=ceil($this->sum/$this->page_show);//总页数 $this->url=$this->curUrl(); //地支 $this->page=$this->curPage(... 阅读全文
posted @ 2016-06-27 15:00 尘梦 阅读(187) 评论(0) 推荐(0)
摘要: 测试页面 阅读全文
posted @ 2016-06-22 21:36 尘梦 阅读(191) 评论(0) 推荐(0)
摘要: 先前也知道,Monitor实现的是在读写两种情况的临界区中只可以让一个线程访问,那么如果业务中存在”读取密集型“操作,就 好比数据库一样,读取的操作永远比写入的操作多。针对这种情况,我们使用Monitor的话很吃亏,不过没关系,ReadWriterLock 就很牛X,因为实现了”写入串行“,”读取并 阅读全文
posted @ 2016-06-20 10:56 尘梦 阅读(1163) 评论(0) 推荐(0)
摘要: 当多个线程在并发的时候,难免会碰到相互冲突的事情,比如最经典的ATM机的问题,并发不可怕,可怕的是我们没有能力控制。 线程以我的理解可以分为三种 ① 锁。 ② 互斥。 ③ 信号。 好,这一篇主要整理“锁”,C#提供了2种手工控制的锁 一: Monitor类 这个算是实现锁机制的纯正类,在锁定的临界区 阅读全文
posted @ 2016-06-20 09:42 尘梦 阅读(5219) 评论(0) 推荐(0)
摘要: using System; using System.Threading; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { ManualResetEvent rem = new ManualResetEven... 阅读全文
posted @ 2016-06-17 09:13 尘梦 阅读(1387) 评论(0) 推荐(0)
摘要: //string s = "select count(*) from t_t_cw_defaultitem where itemname=" + "'" + itemname + "'" + " and " + " itemchild=" + "'" + itemchild + "'" + " an 阅读全文
posted @ 2016-06-16 11:16 尘梦 阅读(202) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Wind... 阅读全文
posted @ 2016-06-16 09:50 尘梦 阅读(190) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Wind... 阅读全文
posted @ 2016-06-14 10:50 尘梦 阅读(571) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Th... 阅读全文
posted @ 2016-06-14 09:06 尘梦 阅读(546) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 29 下一页