03 2015 档案

共享内存
摘要:~ 阅读全文

posted @ 2015-03-25 23:42 kangbry

线程管理
摘要:~ 阅读全文

posted @ 2015-03-25 23:39 kangbry

调度队列
摘要:~ 阅读全文

posted @ 2015-03-25 23:38 kangbry

位域
摘要:~ 阅读全文

posted @ 2015-03-25 23:33 kangbry

读写锁 互斥锁 原子锁
摘要:读写锁互斥锁 阅读全文

posted @ 2015-03-25 23:31 kangbry

智能指针 线程变量
摘要:~ 阅读全文

posted @ 2015-03-25 23:29 kangbry

条件变量 信号量 v信号量
摘要:条件变量信号量v信号量 阅读全文

posted @ 2015-03-25 23:28 kangbry

对象池 定长内存池
摘要:~对象池#ifndef __object_pool__ #define __object_pool__#pragma once #include "mutex_lock.h"#define STRUCT_FIELD(address, type, field) ((type *)((char*)(ad... 阅读全文

posted @ 2015-03-25 00:26 kangbry

环形buff
摘要:~ 阅读全文

posted @ 2015-03-25 00:24 kangbry

reactor模式
摘要:~ 阅读全文

posted @ 2015-03-23 10:11 kangbry

fork函数
摘要:#include #include int main () { pid_t fpid; //fpid表示fork函数返回的值 int count=0; fpid=fork(); if (fpid < 0) printf("error in fork!"); else if (fpid =... 阅读全文

posted @ 2015-03-18 23:37 kangbry

7层网络模型
摘要:OSI是一个开放性的通行系统互连参考模型,他是一个定义的非常好的协议规范。OSI模型有7层结构,每层都可以有几个子层。 OSI的7层从上到下分别是 7 应用层 6 表示层 5 会话层 4 传输层 3 网络层 2 数据链路层 1 物理层 其中高层,即7、6、5、4层定义了应用程序的功能,下面3层,即3... 阅读全文

posted @ 2015-03-18 23:30 kangbry

扑克存储
摘要:_uint8 g_card[MAX_CARD+1] = { 0x30, 0x40, 0x50, 0x60, 0x70, 0x80, 0x90, 0xa0, 0xb0, 0xc0, 0xd0, 0xe0, 0xf0, //方片 3-20x31, 0x41, 0x51, 0x61, 0x71, 0x8... 阅读全文

posted @ 2015-03-18 17:22 kangbry

电梯算法
摘要:#include #define N 6int nPerson[6] = {1,2,3,4,5,6};void min_floor(int& floor, int& min){ for (int i = 0; i j ? i - j : j - i); } if ... 阅读全文

posted @ 2015-03-11 22:49 kangbry

导航