C# 时间函数的处理
摘要:System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=currentTime.Day; 1.5...
阅读全文
posted @
2009-10-28 13:07
delphi2007
阅读(333)
推荐(0)
smart thread pool 【1】简单的使用
摘要:using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;using Amib.Threading;using System.Threading;namespace ConsoleApplication1{ class Program { //[STAThread] stat...
阅读全文
posted @
2009-10-23 22:35
delphi2007
阅读(978)
推荐(0)
多线程
摘要:今天被多线程整晕了。 起初设想好的给server端加上多线程,实现多个用户的连接,可是没搞清楚到底怎么用。后来终于找到个示例,稍加修改才改成的。首先监听服务端的端口,有连接后,进行登录判定,结束后开个线程去监视客户端输入的信息,加以判断即可。class CenterServer { private static IPEndPoint localEndPoint = new IPEndPoint(I...
阅读全文
posted @
2009-10-23 22:25
delphi2007
阅读(392)
推荐(0)
C#获取硬件信息
摘要:using System;using System.Net;using System.Runtime.InteropServices;using System.Management; //需要在解决方案中引用System.Management.DLL文件 namespace ConsoleApplication1{ /// <summary> /// HardInfoClass 的摘...
阅读全文
posted @
2009-10-23 22:22
delphi2007
阅读(549)
推荐(0)
C# 多线程 (Multi-threading) 相关学习资料
摘要:為了讓應用程式執行的更有效率,我們通常會採用 非同步程式設計模式 ( Asynchronous Programming Design Patterns ) 或 多執行緒處理 ( Managed Threading ) 的方式進行開發,尤其是多執行緒程式設計一直是許多程式設計師不敢碰或沒機會碰到的技術,我們最近就有個案子(非 Web 專案)就需要用到多執行緒進行開發,以確保程式的執行效能能夠符合客戶...
阅读全文
posted @
2009-10-23 22:06
delphi2007
阅读(467)
推荐(0)
Smart Thread Pool
摘要:By Ami Bar. A smart Thread Pool implementation in .NET.http://www.codeproject.com/cs/threads/smartthreadpool.asp最近准备写 Search Engine Spider,正好需要用到线程池,而这个东东显然比 System.Threading.ThreadPool 更适合我。 可创建线程池实例...
阅读全文
posted @
2009-10-22 17:36
delphi2007
阅读(573)
推荐(0)