上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 84 下一页
摘要: 在nt平台下,普通应用程序运行在ring3下,操作系统运行于ring0。如果在程序中需要执行一些特权指令的话,程序必须转入到ring0。由于用户程序执行特权指令可能会破坏系统资源,故出于保护和稳定的目的,操作系统通过“门”机制向用户态程序提供必要的服务。在x86种有四种门:中断门、陷阱门、调用门、任... 阅读全文
posted @ 2014-09-01 17:47 穆穆兔兔 阅读(2153) 评论(0) 推荐(0) 编辑
摘要: 第四章 基本tcp 套接口编程注意区分AF_XXX 和PF_XXX,AF代表address family, PF代表protocol family。1 socket 函数2 connect 函数3 bind 函数4 listen 函数注:主动、被动 与 服务器、客户端没有明确的对应关系linux中定... 阅读全文
posted @ 2014-08-29 17:40 穆穆兔兔 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 逻辑地址--------------》线性地址------------》 物理地址 分段 分页GDT是[gobal (segment) descriptor table]的缩写,它保存所有segment的信息内存管理时,不让多进程的程序出现内存冲突的一解决方案是Segmen... 阅读全文
posted @ 2014-08-29 15:32 穆穆兔兔 阅读(1082) 评论(0) 推荐(0) 编辑
摘要: 第三章 套接字编程简介每一个 Socket 都用一个半相关描述:{协议,本地地址,本地端口}一个完整的 Socket 则用一个相关描述{协议,本地地址,本地端口,远程地址,远程端口}每一个 Socket 有一个本地的唯一 Socket 号,由操作系统分配。1.struct sockaddr这个结构用... 阅读全文
posted @ 2014-08-28 13:40 穆穆兔兔 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 第一章:C/C++语言提供两种不同的编程模式:IPL32和PL64。► IPL32 ● 表示integer/pointer/long三种数据类型是32位(4个字节),在这种模式下,提供32位的地址空间,理论的内存使用限制为4G。► PL64 ● 表示pointer/long两种数据类型是64位(8个... 阅读全文
posted @ 2014-08-27 13:45 穆穆兔兔 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 什么是bucketbucket的英文解释:Hash table lookup operations are often O(n/m) (where n is the number of objects in the table and m is the number of buckets), whi... 阅读全文
posted @ 2014-08-26 16:10 穆穆兔兔 阅读(4757) 评论(0) 推荐(1) 编辑
摘要: 在make file中找到ld,然后将其换成 gdb,如本例中LINKER = /usr/cygnus/xscale-020523/H-sparc-sun-solaris2.5/bin/xscale-elf-ld所以gdb 是/usr/cygnus/xscale-020523/H-sparc-sun... 阅读全文
posted @ 2014-08-26 11:19 穆穆兔兔 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 启动1024端口一下,是需要root权限的该Linux/shell命令主要用于解决:1、查看某端口是否被占用;2、查看某端口被哪个进程占用;3、查看某个进程占用了哪些端口;比如我tomcat启动失败,日志显示端口(Port)被占用,可以通过以下命令查看指定Port(tomcat默认端口8080)到底... 阅读全文
posted @ 2014-08-21 14:48 穆穆兔兔 阅读(646) 评论(0) 推荐(0) 编辑
摘要: struct sockaddr {unsigned short sa_family; /* address family, AF_xxx */char sa_data[14]; /* 14 bytes of protocol address */};sa... 阅读全文
posted @ 2014-08-21 14:32 穆穆兔兔 阅读(1181) 评论(0) 推荐(0) 编辑
摘要: 转载 http://blog.chinaunix.net/uid-24774106-id-3379478.htmllinux进程调度之 FIFO 和 RR 调度策略2012-10-19 18:16:43分类:LINUX 作者:manuscola.bean@gmail.com 博客地址:bean.... 阅读全文
posted @ 2014-08-20 16:28 穆穆兔兔 阅读(1037) 评论(0) 推荐(0) 编辑
上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 84 下一页