11 2016 档案

线程队列(版本1+版本2)
摘要:版本1. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ClassLibrary1 { public class BaseThread... 阅读全文

posted @ 2016-11-29 23:28 听哥哥的话 阅读(320) 评论(0) 推荐(0)

lock模拟CountDownEvent
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace ConsoleApplication44 { class Class2 { ... 阅读全文

posted @ 2016-11-27 20:18 听哥哥的话 阅读(128) 评论(0) 推荐(0)

线程学习笔记 等待句柄和线程池(摘自https://blog.gkarch.com/threading/part2.html#manualresetevent)
摘要://如果你的应用有很多线程,这些线程大部分时间都在阻塞,那么可以通过调用ThreadPool.RegisterWaitForSingleObject来减少资源消耗。这个方法接受一个委托,它会在向等待句柄发信号时执行。当处于等待状态时,它不会浪费线程资源: static ManualResetEvent _starter = new ManualResetEvent (false); publi... 阅读全文

posted @ 2016-11-26 22:36 听哥哥的话 阅读(338) 评论(0) 推荐(0)

使用事件等待句柄EventWaitHandler 实现生产者、消费者队列
摘要:using System; using System.Threading; using System.Collections.Generic; class ProducerConsumerQueue : IDisposable { EventWaitHandle _wh = new AutoResetEvent (false); Thread _worker; readonly o... 阅读全文

posted @ 2016-11-26 22:05 听哥哥的话 阅读(771) 评论(0) 推荐(0)

线程学习笔记(EventWaitHandler)AutoResetEvent的使用
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ConsoleApplication46 { class TwoWaySignaling... 阅读全文

posted @ 2016-11-26 21:38 听哥哥的话 阅读(835) 评论(0) 推荐(0)

线程学习
摘要:https://blog.gkarch.com/threading/part1.html#introduction 阅读全文

posted @ 2016-11-23 10:54 听哥哥的话 阅读(96) 评论(0) 推荐(0)

c# 线程信号量 Mutex
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace MyTTCon { class shareRes { public static int count = 0; ... 阅读全文

posted @ 2016-11-21 22:43 听哥哥的话 阅读(190) 评论(0) 推荐(0)

c# 集合适配器
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { public class EnumRema... 阅读全文

posted @ 2016-11-17 10:25 听哥哥的话 阅读(163) 评论(0) 推荐(0)

spring expression
摘要:http://transcoder.baidu.com/from=1014517c/bd_page_type=1/ssid=0/uid=0/baiduid=C286FE95679B12426FD1A9717793917E/w=0_10_/t=iphone/l=3/tc?ref=www_iphone& 阅读全文

posted @ 2016-11-16 09:02 听哥哥的话 阅读(255) 评论(0) 推荐(0)

汇率多线程 草稿
摘要:1.html -- 2.cs using Contract.Domain; using ETLAPP; using Framework; using HraWeb.Common; using NHibernate; using System; using Syst... 阅读全文

posted @ 2016-11-08 23:21 听哥哥的话 阅读(216) 评论(0) 推荐(0)

nhibernate GetType
摘要:本原理 /* This code assumes an IEntity interface that identifies your persistent types. */ /// /// This static class provides common extension methods for types. /// public s... 阅读全文

posted @ 2016-11-07 23:31 听哥哥的话 阅读(150) 评论(0) 推荐(0)

正则 挖网站表格复习
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Text.RegularExpressions; using System.Web; using System.Web.UI; u... 阅读全文

posted @ 2016-11-06 18:49 听哥哥的话 阅读(141) 评论(0) 推荐(0)

c#反射优化 表达式树
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text; using System.Web; namespace Holworth.Utility { //add... 阅读全文

posted @ 2016-11-05 20:45 听哥哥的话 阅读(180) 评论(0) 推荐(0)

combotree 满足条件的节点不可选中
摘要:combotree: $("#Parent").treegrid("unselect"); 阅读全文

posted @ 2016-11-04 16:21 听哥哥的话 阅读(394) 评论(0) 推荐(0)

导航