一、TOP n 实现的通用分页存储过程(转自邹建) Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->CREATE PROC sp_PageView @tbname sysname, --要分页显示的表名 @... Read More
Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> public static int ContainsHeaderEndToken(char[] chars, int start, int end) { bo... Read More
摘要:我们做webService的时候,如果在处理用户请求的时候需要进行异步IO操作,在异步IO完成前会有一个线程在那里同步等待,正在等待的请求太多的话会大大降低服务的吞吐量,asp.net2.0里有异步的HttpHandler能解决这个问题,可.net2.0没给弄一个异步的webservice,这就需要我们自己去实现了。 Read More
新学一招,教大家怎么看死锁 代码如下,3个线程,第一个线程得到锁,Sleep一分钟,后两个线程都等待锁。 class Program { static List _list = new List(); static object _syncRoot = new object(); static void Main(string[] args) { ... Read More