<<这不是原创,是老文,Pankaj Garg写的,看后翻译了一下,原文可以在http://www.intellectualheaven.com/找到。>>1 介绍Windows 32位 x86 操作系统最多能访问4GB的物理内存。这是因为处理器的寻址总线是32条(我们常说32位),能够访问的存储单 Read More
posted @ 2016-12-08 00:15 findumars Views(1415) Comments(0) Diggs(0)
在处理大文件时,如果利用普通的FileInputStream 或者FileOutputStream 抑或RandomAccessFile 来进行频繁的读写操作,都将导致进程因频繁读写外存而降低速度.如下为一个对比实验。 [java] view plain copy package test; imp Read More
posted @ 2016-12-08 00:06 findumars Views(480) Comments(0) Diggs(0)
首先做个试验: test.c: int a;int b=34;int add(int,int);int main(){int c;int d=26;c=add(b,d);return 0;} add.c: int m;int n=65;int add(int x,int y){int j;int k Read More
posted @ 2016-12-08 00:04 findumars Views(345) Comments(0) Diggs(0)
代码可在Windows NT下正常运行 具体API说明请参照如下文档: GetLogicalProcessorInformation 点击打开链接 点击打开链接 点击打开链接 [html] view plain copy typedef BOOL (WINAPI *LPFN_GLPI)(PSYSTE Read More
posted @ 2016-12-07 23:57 findumars Views(1779) Comments(0) Diggs(0)
编程语言是怎么实现类型转换的,而计算机底层又是怎样处理各种类型数据的呢,好吧,源码说明一切。 code.c [cpp] view plain copy int test() { unsigned char a=129; char b=130; char c=a; int h=a; char d=-2 Read More
posted @ 2016-12-07 23:17 findumars Views(823) Comments(0) Diggs(0)