System.Object
C#中所有的类都直接或间接继承自System.Object类,这使得C#中的类得以单根继承。如果我们没有明确指定继承类,编译器缺省认为该类继承自System.Object类。System.Object类也可用小写的object关键字表示,两者完全等同。
因为所有的类都继承与System.Object,所以这些类都可以访问该类中受保护的成员和公共的成员...
分类:
其他好文 时间:
2014-05-23 07:28:04
阅读次数:
234
用信号量实现进程互斥示例:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
union semun {
int ...
分类:
其他好文 时间:
2014-05-22 13:15:44
阅读次数:
231
http协议中的头信息和正文是采用空行分开,什么是空行呢?简单来说,就是\r\n\r\n。
所以将服务器返回的数据用\r\n\r\n分开后的结果,一个是头信息,一个是正文信息。
C#的代码如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
usi...
分类:
其他好文 时间:
2014-05-22 12:55:02
阅读次数:
300
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Tex...
分类:
其他好文 时间:
2014-05-22 12:36:05
阅读次数:
243
网上的N多教程全是Windows平台的,而Google官网是推荐用Ubuntu开发Android,很多朋友也是用Linux的系统开发的,下面我介绍下在Linux下Android开发环镜的搭建。
一、Linux 下安装配置 JDK
自从Oracle收购Sun近三年来,已经有很多变化。早在8月,甲骨文将“Operating System Distributor License f...
分类:
移动开发 时间:
2014-05-22 11:42:51
阅读次数:
406
用System V信号量解决哲学家就餐问题:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
union semun {
int...
分类:
其他好文 时间:
2014-05-22 10:59:37
阅读次数:
302
Oracle磁盘管理中的最高逻辑层是表空间,Oracle11g中必须创建的4个表空间是SYSTEM,SYSAUX, TEMP, UNDOTBS1。
² SYSTEM:存储数据字典等,pl/sql代码等。
² SYSAUX:存储与数据库选项相关的数据
² TEMP:用于大的排序操作
² UNDUTBS1:为读一致性和恢复的目的,存储事务信息。
表空间的下一层是段,一个段只能驻留在一个表空间...
分类:
数据库 时间:
2014-05-22 09:57:30
阅读次数:
488
In a multicore environment—where system resources must be shared—it is important to control simultaneous accesses to the available resources. To ensure correct system operation, it is necessary to lim...
分类:
其他好文 时间:
2014-05-22 07:18:54
阅读次数:
308
信号量和P、V原语由Dijkstra(迪杰斯特拉)提出
信号量
互斥:P、V在同一个进程中
同步:P、V在不同进程中
信号量值含义
S>0:S表示可用资源的个数
S=0:表示无可用资源,无等待进程
S
信号量
struct semaphore
{
int value;
pointer_PCB queue;
}
P原语
P(s)
...
分类:
其他好文 时间:
2014-05-22 07:01:59
阅读次数:
319
在学习中总结的知识点,希望被吐槽,只有这样才能发现问题和不足 。。。
system:不能被实例化类(说明里面的是静态成员),描述系统的相关信息
out:标准输出,默认是控制台
in: 标准输入,默认是键盘
获取/设置系统属性信息,Properties getProperties()/setProperties()
...
分类:
其他好文 时间:
2014-05-22 06:41:59
阅读次数:
195