- 博客(8)
- 资源 (4)
- 收藏
- 关注
原创 多核心计算机运算
在上一篇《【代码保留】ThreadPoolHelper SampleCode》文章中,我们提到了ThreadPool。而这篇文章将通过一组数据来展示多核计算、单核计算以及线程池在处理单核计算时候的一些区别。本篇示例将继续引用上一篇示例中的例子,并作出补充,请自行查阅。(上一篇)由于我们知道经过多年的工业发展,计算机已经逐渐从单核向多核发展,再者由于计算机(特指CPU)的发展在单
2007-12-23 23:02:00 539
原创 ThreadPoolHelper
在使用ThreadPool的时候,我们可能会经常使用到QueueUserWorkItem这个静态方法,这个方法的两个版本如下public static bool QueueUserWorkItem(WaitCallback callBack)public static bool QueueUserWorkItem(WaitCallback callBack,Object s
2007-12-23 07:02:00 722
原创 The Attribute basic
本文仅仅写了一个最简单的Attribute示例,不作过多阐释,代码如下: 值得注意的是,由于Attribute是在编译时确定的,因此/*Blog = new Blog(10,"title","content"),*/ 由于Blog的确定是在运行时确定的,这样的方式将无法编译通过。using System;using System.Reflection;namespace CA_
2007-12-16 22:02:00 325
原创 oracle sqlplus
DOS: 内含两种方法: sqlplus username@connect_identifier,如以下示例中:sqlplus bzgl@ora10g sqlplus username[/password][@connect_identifier],如以下示例中:sqlplus bzgl/bzgl@o
2007-12-14 13:02:00 638
原创 静态构造函数(Static Constructor)(It performs well in Singleton)
今天无意间看到了静态构造函数的代码,也许是没怎么见过,觉得新鲜,就顺手写了以下代码,或许我见过,或许我忘记了……呵呵,发布上来自己作个纪念…… 发现用来做Singleton模式倒是不错,呵呵……using System;namespace CA_StaticConstructor{ class StaticClass { public st
2007-12-10 03:02:00 521
原创 TreeView的ImageSet属性设置断线的问题
TreeView的ImageSet属性设置完后,图标可能替换掉了,但是却会出现如下图所示断线的情况。 在IE7中,即使设置了ShowLines=true,也会出现如此断线情况。(IE6貌似不会) 使用VS2005创建的页面会自动添加: 将此句删除即可。
2007-12-06 22:02:00 671
原创 【代码保留】IP地址排序(字符串分隔补齐)
功能:实现IP地址排序思路:IP地址以点号分隔,直接排序会出现顺序混乱:如:10.143.19.138192.168.1.1如此两个IP地址是无法排序的(很明显)将其转换成:010.143.019.138192.168.001.001就可以进行排序了……代码:select t.icf_path icf_path_o,lpad(substr(t.i
2007-12-03 09:02:00 360
原创 微软发布架构师期刊阅读器
微软发布架构师期刊阅读器转载:http://www.infoq.com/cn/news/2007/11/aj-reader作者 Hartmut Wilms译者 胡键 发布于 2007年11月29日 下午11时53分 社区.NET主题企业架构 微软发布了架构师期刊阅读器,它是一个用来阅读架构师期刊的WPF阅读器。架构师期刊是一份由微软发行的关注于IT架构的
2007-12-02 01:02:00 330
使用增强的计时器测量代码段(Code Section)
2009-02-19
Learning GNU C
2008-09-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人