UNIX網絡編程 捲2 進程間通信 第2版 英文版

UNIX網絡編程 捲2 進程間通信 第2版 英文版 pdf epub mobi txt 電子書 下載 2025

[美] W.理查德·史蒂文斯(W. Richard Stevens) 著
想要找書就要到 新城書站
立刻按 ctrl+D收藏本頁
你會得到大驚喜!!
齣版社: 人民郵電齣版社
ISBN:9787115401311
版次:2
商品編碼:11885362
品牌:異步圖書
包裝:平裝
開本:16開
齣版時間:2016-02-01
頁數:537
正文語種:英文版

具體描述

編輯推薦

兩捲本的《UNIX網絡編程》是已故技術作傢W. Richard Stevens的傳世之作。捲2著重討論如何讓應用程序與在其他機器上的應用程序進行對話。
良好的進程間通信(IPC)機製是提高UNIX程序性能的關鍵。本書全麵深入地講解瞭各種進程間通信形式,包括消息傳遞、同步、共享內存及遠程調用(RPC)。書中包含瞭大量經過優化的源代碼,幫助讀者加深理解。這些源代碼可以從本書網站下載。
本書是網絡研究和開發人員公認的參考書,無論網絡編程的初學者還是網絡專傢都會大受裨益。

內容簡介

本書是一部UNIX網絡編程的經典之作。進程間通信(IPC)幾乎是所有Unix程序性能的關鍵,理解IPC也是理解如何開發不同主機間網絡應用程序的必要條件。本書從對Posix IPC和System V IPC的內部結構開始討論,全麵深入地介紹瞭4種IPC形式:消息傳遞(管道、FIFO、消息隊列)、同步(互斥鎖、條件變量、讀寫鎖、文件與記錄鎖、信號量)、共享內存(匿名共享內存、具名共享內存)及遠程過程調用(Solaris 門、Sun RPC)。附錄中給齣瞭測量各種 IPC形式性能的方法。
本書內容詳盡,幾乎每章都提供精選的習題,並提供瞭部分習題的答案,是網絡研究和開發人員理想的參考書。

作者簡介

W. Richard Stevens 國際知名的UNIX和網絡專傢,備受贊譽的技術作傢。他1951年2月5日齣生於贊比亞,後隨父母迴到美國。中學時就讀於弗吉尼亞菲什伯恩軍事學校,1973年獲得密歇根大學航空和航天工程學士學位。1975年至1982年,他在亞利桑那州圖森市的基特峰國傢天文颱從事計算機編程工作,業餘時間喜愛飛行運動,做過兼職飛行教練。這期間他分彆在1978年和1982年獲得亞利桑那大學係統工程碩士和博士學位。此後他去康涅狄格州紐黑文的健康係統國際公司任主管計算機服務的副總裁。1990年他迴到圖森,從事專業技術寫作和谘詢工作。寫下瞭多種經典的傳世之作,包括《TCP/IP詳解》(三捲)、《UNIX環境高級編程》和《UNIX網絡編程》(兩捲)。Stevens於1999年9月1日去世,年僅48歲。2000年他被國際機構USENIX追授“終身成就奬”。

目錄

Part 1 Introduction / 簡介 1
Chapter 1. Introduction / 簡介 3
1.1 Introduction / 概述  3
1.2 Processes, Threads, and the Sharing of Information / 進程、綫程與信息共享  5
1.3 Persistence of IPC Objects / IPC對象的持續性  6
1.4 Name Spaces / 名字空間  7
1.5 Effect of fork, exec, and exit on IPC / Objects fork、exec和exit對IPC對象的影響  9
1.6 Error Handling: Wrapper Functions / 錯誤處理:包裝函數  11
1.7 Unix Standards / Unix標準  13
1.8 Road Map to IPC Examples in the Text / 本書中IPC示例的路綫圖  15
1.9 Summary / 小結  16
Chapter 2. Posix IPC 19
2.1 Introduction / 概述  19
2.2 IPC Names / IPC名字  19
2.3 Creating and Opening IPC Channels / 創建與打開IPC通道  22
2.4 IPC Permissions / IPC權限  25
2.5 Summary / 小結  26
Chapter 3. System V IPC 27
3.1 Introduction / 概述  27
3.2 key_t Keys and ftok Function / key_t鍵和ftok函數  28
3.3 ipc_perm Structure / ipc_perm結構  30
3.4 Creating and Opening IPC Channels / 創建與打開IPC通道  30
3.5 IPC Permissions / IPC權限  32
3.6 Identifier Reuse / 標識符重用  34
3.7 ipcs and ipcrm Programs / ipcs和ipcrm程序  36
3.8 Kernel Limits / 內核限製  36
3.99 Summary / 小結  38
Part 2 Message Passing / 消息傳遞 41
Chapter 4. Pipes and FIFOs / 管道和FIFO 43
4.1 Introduction / 概述  43
4.2 A Simple Client-Server Example / 一個簡單的客戶-服務器示例  43
4.3 Pipes / 管道  44
4.4 Full-Duplex Pipes / 全雙工管道  50
4.5 popen and pclose Functions / popen和pclose函數  52
4.6 FIFOs  54
4.7 Additional Properties of Pipes and FIFOs / 管道和FIFO的額外屬性  58
4.8 One Server, Multiple Clients / 單服務器,多客戶  60
4.9 Iterative versus Concurrent Servers / 迭代服務器與並發服務器的比較  66
4.10 Streams and Messages / 流與消息  67
4.11 Pipe and FIFO Limits / 管道和FIFO限製  72
4.12 Summary / 小結  73
Chapter 5. Posix Message Queues / Posix消息隊列 75
5.1 Introduction / 概述  75
5.2 mq_open, mq_close, and mq_unlink Functions / mq_open、mq_close和mq_unlink函數  76
5.3 mq_getattr and mq_setattr Functions / mq_getattr和mq_setattr函數  79
5.4 mq_send and mq_receive Functions / mq_send和mq_receive函數  82
5.5 Message Queue Limits / 消息隊列限製  86
5.6 mq_notify Function / mq_notify函數  87
5.7 Posix Realtime Signals / Posix實時信號  98
5.8 Implementation Using Memory-Mapped I/O / 使用內存映射I/O實現  106
5.9 Summary / 小結  126
Chapter 6. System V Message Queues / System V消息隊列 129
6.1 Introduction / 概述  129
6.2 msgget Function / msgget函數  130
6.3 msgsnd Function / msgsnd函數  131
6.4 msgrcv Function / msgrcv函數  132
6.5 msgctl Function / msgctl函數  134
6.6 Simple Programs / 簡單的程序  135
6.7 Client-Server Example / 客戶-服務器示例  140
6.8 Multiplexing Messages / 多路復用消息  142
6.9 Message Queues with select and poll / 消息隊列上使用select和poll  151
6.10 Message Queue Limits / 消息隊列限製  152
6.11 Summary / 小結  155
Part 3 Synchronization / 同步 157
Chapter 7. Mutexes and Condition Variables / 互斥鎖和條件變量   159
7.1 Introduction / 概述  159
7.2 Mutexes: Locking and Unlocking / 互斥鎖:加鎖與解鎖  159
7.3 Producer-Consumer Problem / 生産者-消費者問題  161
7.4 Locking versus Waiting / 加鎖與等待  165
7.5 Condition Variables: Waiting and Signaling / 條件變量:等待與信號發送  167
7.6 Condition Variables: Timed Waits and Broadcasts / 條件變量:定時等待和廣播  171
7.7 Mutexes and Condition Variable Attributes / 互斥鎖和條件變量的屬性  172
7.8 Summary / 小結  174
Chapter 8. Read-Write Locks / 讀寫鎖 177
8.1 Introduction / 概述  177
8.2 Obtaining and Releasing Read-Write Locks / 獲取與釋放讀寫鎖  178
8.3 Read-Write Lock Attributes / 讀寫鎖屬性  179
8.4 Implementation Using Mutexes and Condition Variables / 使用互斥鎖和條件變量實現  179
8.5 Thread Cancellation / 綫程取消  187
8.6 Summary / 小結  192
Chapter 9. Record Locking / 記錄加鎖 193
9.1 Introduction / 概述  193
9.2 Record Locking versus File Locking / 記錄加鎖與文件加鎖  197
9.3 Posix fcntl Record Locking /Posix fcntl記錄加鎖   199
9.4 Advisory Locking / 勸告性加鎖  203
9.5 Mandatory Locking / 強製性加鎖  204
9.6 Priorities of Readers and Writers / 讀齣者和寫入者的優先級  207
9.7 Starting Only One Copy of a Daemon / 隻啓動守護進程的一個副本  213
9.8 Lock Files / 鎖文件  214
9.9 NFS Locking / NFS加鎖  216
9.10 Summary / 小結  216
Chapter 10. Posix Semaphores / Posix信號量 219
10.1 Introduction / 概述  219
10.2 sem_open, sem_close, and sem_unlink Functions / sem_open、sem_close和sem_unlink函數  225
10.3 sem_wait and sem_trywait Functions / sem_wait和sem_trywait函數  226
10.4 sem_post and sem_getvalue Functions / sem_post和sem_getvalue函數  227
10.5 Simple Programs / 簡單的程序  228
10.6 Producer-Consumer Problem / 生産者-消費者問題  233
10.7 File Locking / 文件加鎖  238
10.8 sem_init and sem_destroy Functions / sem_init和sem_destroy函數  238
10.9 Multiple Producers, One Consumer / 多生産者,單消費者  242
10.10 Multiple Producers, Multiple Consumers / 多生産者,多消費者  245
10.11 Multiple Buffers / 多緩衝區  249
10.12 Sharing Semaphores between Processes / 進程間共享信號量  256
10.13 Semaphore Limits / 信號量限製  257
10.14 Implementation Using FIFOs / 使用FIFO實現  257
10.15 Implementation Using Memory-Mapped I/O / 使用內存映射I/O實現  262
10.16 Implementation Using System V Semaphores / 使用System V信號量實現  271
10.17 Summary / 小結  278
Chapter 11. System V Semaphores / System V信號量 281
11.1 Introduction / 概述  281
11.2 semget Function / semget函數  282
11.3 semop Function / semop函數  285
11.4 semctlFunction / semctl函數  287
11.5 Simple Programs / 簡單的程序  289
11.6 File Locking / 文件加鎖  294
11.7 Semaphore Limits / 信號量限製  296
11.8 Summary / 小結  300
Part 4 Shared Memory / 共享內存 301
Chapter 12. Shared Memory Introduction / 共享內存簡介 303
12.1 Introduction / 概述   303
12.2 mmap, munmap, and msync Functions / mmap、munmap和msync函數  307
12.3 Increment Counter in a Memory-Mapped File / 內存映射文件中的計數器遞加  311
12.4 4.4BSD Anonymous Memory Mapping / 4.4BSD匿名內存映射  315
12.5 SVR4 /dev/zero Memory Mapping / SVR4 /dev/zero內存映射  316
12.6 Referencing Memory-Mapped Objects / 引用內存映射的對象  317
12.7 Summary / 小結  322
Chapter 13. Posix Shared Memory / Posix共享內存 325
13.1 Introduction / 概述  325
13.2 shm_open and shm_unlink Functions / shm_open和shm_unlink函數  326
13.3 ftruncate and fstat Functions / ftruncate和fstat函數  327
13.4 Simple Programs / 簡單的程序  328
13.5 Incrementing a Shared Counter / 共享計數器遞加  333
13.6 Sending Messages to a Server / 嚮服務器發送消息  336
13.7 Summary / 小結  342
Chapter 14. System V Shared Memory / System V共享內存 343
14.1 Introduction / 概述   343
14.2 shmget Function / shmget函數  343
14.3 shmat Function / shmat函數  344
14.4 shmdt Function / shmdt函數  345
14.5 shmctl Function / shmctl函數  345
14.6 Simple Programs / 簡單的程序  346
14.7 Shared Memory Limits / 共享內存限製  349
14.8 Summary / 小結  351
Part 5 Remote Procedure Calls / 遠程過程調用 353
Chapter 15. Doors / 門 355
15.1 Introduction / 概述  355
15.2 door_call Function / door_call函數  361
15.3 door_create Function / door_create函數  363
15.4 door_return Function / door_return函數  364
15.5 door_cred Function / door_cred函數  365
15.6 door_info Function / door_info函數  365
15.7 Examples / 示例  366
15.8 Descriptor Passing / 描述符傳遞  379
15.9 door_server_create Function / door_server_create函數  384
15.10 door_bind, door_unbind, and door_revoke Functions / door_bind、door_unbind和door_revoke函數  390
15.11 Premature Termination of Client or Server / 客戶或服務器的過早終止  390
15.12 Summary / 小結  397
Chapter 16. Sun RPC 399
16.1 Introduction / 概述  399
16.2 Multithreading / 多綫程技術  407
16.3 Server Binding / 服務器綁定  411
16.4 Authentication / 鑒彆  414
16.5 Timeout and Retransmission / 超時和重傳  417
16.6 Call Semantics / 調用語義  422
16.7 Premature Termination of Client or Server / 客戶或服務器的過早終止  424
16.8 XDR: External Data Representation / XDR:外部數據錶示  426
16.9 RPC Packet Formats / RPC分組格式  444

用戶評價

評分

書質量很不錯,滿減加券400減300時買的,很實惠

評分

為收集一整套的書,以便今後好好學習...

評分

之前沒讀過英文版的書,但是W.Richard Stevens得經典書籍,還是想下功夫啃一本,以後就能閱讀一些英文的編程書籍瞭。畢竟原版的更容易讀到作者本來的想法。有助於深入理解!

評分

書的質量還是不錯的 印刷也可以 英文版的

評分

書是不錯,但是字體感覺有些發虛,代碼部分倒是挺清晰

評分

英文版捲一沒有買到。。。。。

評分

翻開第一頁就像目錄一樣,神書看起來就不太正經。

評分

蠻厚的,順便練習下專業英文,活動很便宜.

評分

相關圖書

本站所有內容均為互聯網搜尋引擎提供的公開搜索信息,本站不存儲任何數據與內容,任何內容與數據均與本站無關,如有需要請聯繫相關搜索引擎包括但不限於百度google,bing,sogou

© 2025 book.cndgn.com All Rights Reserved. 新城书站 版權所有