Book Review: Advanced UNIX Programming, 2nd Edition
Advanced UNIX Programming, Second Edition
Marc J. Rochkind
Addison-Wesley Professional
ISBN 0131411543
$44.99
Although this book is the second edition of this title, the former edition was published quite a while ago, 20 years to be exact. Quite a bit in UNIX programming has changed since then.
The book begins with an introduction to UNIX and its variants, including Linux and FreeBSD. Subsequently, the book deals with I/O--file I/O and, perhaps less common, terminal I/O--processes and threads. A large portion of the book is devoted to interprocess communication (IPC). Coverage is given to pipes, named pipes (FIFOs), shared memory and sockets, all of which are accompanied by many code examples. Also explained are the two sets of system calls used for messages, semaphores and shared memory--System V IPC, the older system, and POSIX IPC, the newer one. In addition to describing each system, the author explains the advantages and disadvantages of using each.
The author also defines, for the purpose of writing the IPC portion of the book, a special interface called SMI--simple messaging interface. SMI is not part of any standard. Instead, it defines requirements for a simple messaging interface, with types and functions of its own, which then is demonstrated in various IPC mechanisms. The final chapter of the book is devoted to signals and timers.
Throughout the book, examples are provided that demonstrate doing things the wrong way--either partially or completely--and subsequently how to fix them. The author also often gives a simple example that builds into a more complex example, which is quite helpful for watching an idea grow. It may take a bit of time to get used to all of the code samples--there are a lot of them. Furthermore, almost every system call is wrapped in a macro that tests its return value; usually it is ec_neg1. Finally, almost every program ends with EC_CLEANUP_BGN / EC_CLEANUP_END macros. Be sure to explore the book's accompanying Web site, which provides all the code samples contained in the book.
All in all, Advanced UNIX Programming, Second Edition is a great book; it's well written, interesting and full of examples. It's a great resource for beginning and intermediate programmers who want to improve their overall knowledge of UNIX.
Dan Kaspi is a software engineer who has been developing network applications for Linux for over five years. Besides being a Linux enthusiast, he likes playing chess and music.
Trending Topics
| You Need A Budget | Feb 10, 2012 |
| The Linux powered LAN Gaming House | Feb 08, 2012 |
| Creating a vDSO: the Colonel's Other Chicken | Feb 06, 2012 |
| Your CMS Is Not Your Web Site | Feb 01, 2012 |
| Casper, the Friendly (and Persistent) Ghost | Jan 31, 2012 |
| Razor-qt 0.4 - Qt based Desktop Environment | Jan 30, 2012 |
- Fun with ethtool
- 100% disappointed with the decision to go all digital.
- Readers' Choice Awards 2011
- Parallel Programming with NVIDIA CUDA
- Validate an E-Mail Address with PHP, the Right Way
- You Need A Budget
- Linux-Based X Terminals with XDMCP
- Why Python?
- Writing a Simple USB Driver
- The Linux powered LAN Gaming House
- buena información
2 hours 15 min ago - One important "bucket" that I didn't note (désolé si qqun deja d
3 hours 15 min ago - Gnome3 is such a POS. No one
12 hours 42 min ago - Gnome 3 is the biggest POS
12 hours 53 min ago - I didn't knew this thing by
18 hours 57 min ago - Author's reply
22 hours 22 min ago - Link to modlys
23 hours 28 min ago - I use YNAB because of the
23 hours 40 min ago - Search
1 day 4 hours ago - Question
1 day 5 hours ago





Comments
Well, it looks like the book
Well, it looks like the book is out. I didn't see a comparison review when I did a google search.
Büyüler
komik oyun
Although I must say this book has been very usefull. I can't say that it was really all that well written. When I read it I found it more of a reference or man page rather than an informative learning book. I would recommend it to the intermediate/advanced programmer but not a beginner.
giydirme
great article thanks
i felt different about this book
Although I must say this book has been very usefull. I can't say that it was really all that well written. When I read it I found it more of a reference or man page rather than an informative learning book. I would recommend it to the intermediate/advanced programmer but not a beginner.
-Ben
uidzer0.org
Isn't it what the title says?
Isn't it what the title says? Advanced UNIX Programming...
-trochej
The informational value of th
The informational value of this review would have been greatly enhanced you had compared it to Stevens' Advanced Programming in the Unix Environment.
Re: The informational value of this review
Hello,
I know and appreciate "Advanced Programming in the Unix Environment" of Stevens , as well as other books of him.
The second edition of Stevens book will be published at July 22, 2005;
at list, according to Amazon site
http://www.amazon.com/exec/obidos/tg/detail/-/0201433079/qid=1105873209/...
This fisrt edition is from more than 10 years ago (1992).
So I felt it will be not appropiate to make a comparison now;
But when it will be out, I intend to read it and post a book review
on it with a comparison to Rochkind book.
Regards
Dan
Comparison with stevens book
Well, it looks like the book is out. I didn't see a comparison review when I did a google search.