UNIX环境高级编程

出版社:机械工业出版社
出版日期:2002-1-1
ISBN:9787111095088
作者:W.Richard Stevens
页数:772页

书籍目录

Preface
Chapter 1 Introduction
Chapter 2 Unix Standardization and Implementations
Chapter 3 File I/O
Chapter 4 files and Directories
Chapter 5 Standard I/O Library
Chapter 6 System Data Files and Information
Chapter 7 The Environment of a Unix Process
Chapter 8 Process Control
Chapter 9 Process Relationships
Chapter 10 Signals
Chapter 11 Terminal I/O
Chapter 12 Advanced I/O
Chapter 13 Daemon Processes
Chapter 14 Interprocess Communication
Chapter 15 Advanced Interprocess Communication

作者简介

    If you are an experienced C programmer with a working knowledge of UNIX, you cannot afford to be without this up-to -date tutorial on the system call interface and the most important functions found in the ANSI C library. Richard Stevens describes more than 200 system calls and functions; since he believes the best way to learn code is to read code,a brief example accompanies each description. Building upon information presented in the first 15 chapters, the author offers chapter-long examples teaching you how to create a database library, a PostScript printer driver, a modem dialer, and a program that runs other programs under a pseudo terminal. To make your analysis and understanding ofthis code even easier, and to allow you to modify it, all of the code in the book is available via UUNET. Advanced Programming in the UNIX Environment is applicable to all major UNIX releases, especially System V Release  the latest release of 4.3BSD, including 386BSD. These real-world implementations allow you to more clearly understand the status of the current and future standards,including IEEE POSIX and XPG3.

图书封面


 UNIX环境高级编程下载



发布书评

 
 


精彩短评 (总计25条)

  •       这本书很棒,真的。
      可惜作者死掉了。
      很喜欢书中例子简明,但靠他搞不定事情。我是指编程技巧,可能还需要一些算法方面的书,比如The art of computtting programming.
      
      这本书里面的File概念在大多数动态语言中有着相似的实现,当然要方便许多。
      当你某天在python中看到select系统调用,你会泪流满面的想到APUE:
      They are exactly the same thing!!!!!!!
      
      Signal这一章有点乱,当然不通种的*unix在上面刀光剑影的事情太多了。
      reentra没看懂,但是wiki上面的reentrant有个甚好的补充。
      
      Thread避免了不同task之间的序列化,用起来很棒,但是sync除外。
      
      说说sync吧:
      在C里,sync是件麻烦时,因为要考虑signal和thread的交互影响,好像一个不小心就deadlock,感觉像是走在钢丝线上,一个不慎万劫不复。如果要考虑各种情况的话,就有点想玩排列组合,这真的很累哦。
      我想有没有数学方法可以在编程中借鉴,对于这些事务进行处理?
      
      说实话,书中对程序中的数据加lock进行保护的方法真的不怎么好。
      如果这些数据一多--lock同样的增多,在非良构的程序中,程序出错的机率大大增加。即使在良构的程序中,这些lock也要占用大量的系统资源。
      
      对于上述情况,现在的程序的做法,好像是对于thread进行限制,让他只能接触自己的数据,不同thread的之间通过消息来传递数据。想想html5中的worker吧,post message或者是get message来和主线程通信。说实在话,全局的资源还是有冲突的可能,但是这至少是事情变得省心的开始。
      
      也许erlang, clojure这些functional language在这条路上走的更远。这些是程序世界的迷人之处,小的变革,影响世界。
      
      
      
      BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,BULA,
  •     老书了啊,不过本身也没多少变化
  •       Mon Nov 08 , 2010 Beijing
      刚刚拜读完UNIX环境高级编程-(第2版),感受如下:
      1,详细描述标准ISO C 以及POSIX.1 库的介绍还有具体应用;
      2,分别针对Linux,Unix,Solaris 系统上C编程做了详细描述
  •     这个概率不小吧。那gg也太容易了
  •     2005.11.22
  •     这本书有点过时,但是在Linux和FreeBSD两套系统下能够完成几乎所有练习,看来Unix系统在过去30年中核心思想从来没有改变。
  •     恩,你说的也对。我刚查了下,代码里一次读的大小是8k,想必也够一个http头了。我是受代码中大量的readmore的影响了。
  •     Bible
  •     unix编程经典
  •     为什么我买的¥49呢?
  •     字典
  •     嗯,要是断在这确实比较惨~ 不过我认为概率真不大~ 他每次读取的数据应该可以最少包含一个完整的http请求,除非超时或者被中断 这时候就当做错误处理了~
  •       第21章,与网络打印机通信
      
      printd.c的代码中,从863到878行,如果读的缓冲区刚好在"Content-Length:xxxx"(xxxx代表一个数字)中的数字部分截断,那得到的content-length就不是真实长度了。
      
      求证。
  •     扔掉你所有UNIX的编程书籍,从今以后书架上放上它和英文词典
  •     UNIX环境下的编程圣经,不能不看
  •     什么是深入浅出
  •     非常不错的教材,对吃透系统很有帮助。
  •     其实想看第二版,奈何各大网站英文版都缺货。刚看完几章,学过OS的觉得讲得很明白,对unix系下编程有很大帮助。不过讲得一些OS设计的标准都很老,除了SVR、BSD、POSIX其他都没什么概念,linux的GNU系可能那时还没出来吧,还是看第二版好。 ———————— Mark一记 没看完 找空再搞
  •     重复的购买,英文真的不懂
  •       这本书不错。不过自学起来有地方不懂,搞不明白,怪累的。有朋友说在猎豹网校上学这个课程,是看视频那种,挺容易看懂的,就象有个老师面对面讲课操作给我看一样。我就也上去试听了一下,老师讲的还真不错,听一下,真是就简单多了!象我这样上班三班倒的人,没有大块时间,下了班随时找点空,就上网听几下,就能学下来了。
      
  •     是 mesg truancation !
  •       我看这本书的目的就是更加深入地理解Unix,读得不是很细,但也从中学到很很多基础且重要的知识。书中大量的实例代码,对于知识的理解和平时的查阅非常有用。稍微不足的地方是整本书在在讲述概念的时候比较官方,比喻、图示等人类更容易理解的方式用的还不是特别多。
  •     第一次晦涩,第二次赞叹,第三第四第五...工具书
  •       APUE、UNP两卷,这三本书应该是进入linux编程的必读之书,如果真正读完这三本书,并且认真思考过,再加上一些项目的练习,那么你会成为一个能做事的程序员,你会有能力单独完成一个不算复杂的项目;但是也仅仅是一个能做事的程序员而已,离一个优秀的程序员还很远。
  •     真要是那么巧的中断在数字部分,content-length 就gg了
 

外国儿童文学,篆刻,百科,生物科学,科普,初中通用,育儿亲子,美容护肤PDF图书下载,。 零度图书网 

零度图书网 @ 2024