Days_With_APUE
专栏的每篇blog均有目录便于最快的检索重要的知识点,非常欢迎学习APUE的童鞋交流讨论 -- The.L
JasonLeaster
Doing is better than saying.
展开
-
一个简易数据库的实现 ---- APUE chapter 20 A Database library
A Database library 我会说明天上午十点考数据库,我现在还在写博客... 什么心态 QAQ我还是忍不住吐槽, 那个数据库的课上的.... (此处省略一万五千字的感想)---------------------------------------------------原创 2014-12-24 03:02:48 · 2535 阅读 · 0 评论 -
资源向导之 "APUE"
APUE --- Advanced programming in the unix environment这本书我看了好多遍....原因嘛, 第一次看到进程那里,看不懂了,前面基础没看好,从头再来第二次看到进程通信了,看不懂了,从头再来... ...估计看了四次,还是五次,忘记了,才看到第19章.感觉后面和网络编程就关系就没看了.老老实实一个个照着例原创 2014-12-22 16:59:06 · 1998 阅读 · 0 评论 -
《APUE》chapter 18 Terminal I/O 学习笔记(加上自己的代码)
《APUE》chapter 16 Network IPC: Sockets 学习笔记(加上自己的代码)(原创 2014-04-15 16:27:05 · 2236 阅读 · 0 评论 -
《APUE》chapter 16 Network IPC: Sockets 学习笔记(加上自己的代码)
Network IPC: Sockets原创 2014-04-13 00:03:23 · 2279 阅读 · 0 评论 -
《APUE》chapter 15 Interprocess Communication 学习笔记(加上自己的代码)
Interprocess Communication原创 2014-04-10 17:20:41 · 1599 阅读 · 0 评论 -
《APUE》chapter 14 Advanced I/O 学习笔记(加上自己的代码)
Advanced I/O原创 2014-04-10 09:55:37 · 1900 阅读 · 0 评论 -
《APUE》chapter 13 Deamon Process 学习笔记(加上自己的代码)
Deamon Process Because they don’t have a controlling terminal, we say that they run in the background.原创 2014-04-07 20:05:47 · 1865 阅读 · 0 评论 -
《APUE》chapter 12 Thread control 学习笔记(加上自己的代码)
Thread control原创 2014-04-07 14:23:10 · 1835 阅读 · 0 评论 -
《APUE》chapter 11 Thread 学习笔记(加上自己的代码)
Thread All threads within a single process have access to the same process components, such as file descriptors and memoryThread Concepts原创 2014-04-03 14:59:00 · 1990 阅读 · 0 评论 -
APUE figure 11.12 勘误 关于死锁解决办法的代码错误
虽然我自己很不愿意面对这个事实。。。但是它就是错了,完全解释不通我把书中问题代码的源码放在blog最后,并和第三版APUE进行比较比较可以发现第二版中有这样一段代码和第三不一样第二版foo_find里面:foo_find(int id) /* find a existing object */{ struct foo *fp; int i原创 2014-04-03 13:19:53 · 2007 阅读 · 1 评论 -
《APUE》Chapter 10 Signals (学习笔记加上自己的代码)
Signalssignal is software exception !看源码绝对是一种享受.Programmer view the source code , something like detective find the truth!原创 2014-04-02 17:34:18 · 2912 阅读 · 0 评论 -
signal 函数只能接受一次信号? The naughty signal function
The naughty signal functionsignal 函数的prototype: #include typedef void (*sighandler_t)(int); sighandler_t signal(int signum, sighandler_t handler);在练习是时候发现一个问原创 2014-03-31 12:14:25 · 4577 阅读 · 4 评论 -
《APUE》Chapter 9 Process relationships (学习笔记加上自己的代码)
Process RelationshipsTerminal LoginsUnix 是1971年开始的吧,但是这个terminal login的机制最起码30年没变过,嘿嘿。。。All the processes shown in Figure9.1 have a real user ID of 0 and an effective user ID of原创 2014-03-30 00:03:11 · 2226 阅读 · 0 评论 -
进程和程序的区别 The relationship between process and program
遇到一个概念性的问题:程序和进程有什么区别?一个程序是代码和数据的集合。一个进程是程序执行时候的一个特殊实例。程序总是运行于一个进程之中。对于进程和程序概念性的区分对于理解fork函数和execl函数都是有很大帮助的。fork在相同的程序之中创建一个新的子进程,子进程具有父进程的很多性质,除了fork返回值不同PID不同两者的父进程不同父进程如果有文件锁,子进程不继原创 2014-03-29 10:50:40 · 2153 阅读 · 0 评论 -
《APUE》Chapter 8 Process control(学习笔记加上自己的代码)
Process ControlThis includes the creation of new processes, program execution, and process termination.Process Identifiers ---- PID(嘿嘿,和自控里面的不同哇。。。)Every process has a uni原创 2014-03-28 23:49:10 · 2689 阅读 · 0 评论 -
《APUE》chapter 7 Process Environment 学习笔记(加上自己的代码)
Process EnvironmentEverything start here -- main Functionint main(int argc ,char *argv []);We are familiar with this guy... but I would like to repeat and write down my understanding about原创 2014-03-27 10:08:12 · 1623 阅读 · 0 评论 -
《APUE》chapter 6 System Data files and information 学习笔记(加上自己的代码)
System Data files and information原创 2014-03-25 18:01:24 · 2032 阅读 · 0 评论 -
《APUE》chapter 5 Standard I/O libary 学习笔记(加上自己的代码)
Standard I/O libary学习笔记+code原创 2014-03-25 11:26:28 · 1811 阅读 · 0 评论 -
byte oriented and wide oriented
byte oriented and wide orientedByte orientation refers to forms of data processing in which digital data are processed bytewise. For example, communication is called byte oriented or character原创 2014-03-24 09:08:18 · 2254 阅读 · 1 评论 -
《APUE》Chapter 4 Files and directories (学习笔记加上自己的代码)
Files and directories整个第四章都是围绕着三个stat函数展开的#include int stat(const char *restrict pathname, struct stat *restrict buf);int fstat(int filedes, struct stat *buf);int lstat(const char *restrict pat原创 2014-03-23 17:29:25 · 2256 阅读 · 0 评论 -
《APUE》Chapter 3 File I/O(学习笔记加上自己的代码)
文件I/O在Unix系统中,文件I/O大多数的使用五大函数来实现:open,read,write,lseek 和close.术语unbuffered的意思是每个read或者write函数向内核请求一个系统调用对于内核而言,每一个打开的文件都有相应的file descriptors(非负整数).open 函数#includeint open(const cha原创 2014-02-04 22:57:51 · 1737 阅读 · 0 评论