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.
Special Magazine Offer -- Free Gift with Subscription
Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer
Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.
Subscribe now!
The Latest
Newsletter
Tech Tip Videos
- Jul-01-09
- Jun-29-09
Recently Popular
From the Magazine
July 2009, #183
News Flash: Linux Kernel 3.0 to include an on-the-go Expresso machine interface! Ok, maybe not, but Linux is definitely going mobile, from phones to e-readers. Find out more inside about Android, the Kindle 2, the Western Digital MyBook II, The Bug, and Indamixx (a portable recording studio). And if you've gone mobile and you been wanting more Emacs in your life then check out Conkeror.
To compliment the mobile we've got the stationary: parsing command line options with getopt, checking your Ruby code with metric_fu, and building a secure Squid proxy. How is this stationary you ask? What can we say? It's not. We just wanted to see if anybody actually read this part of the page :) .
All this and more, and all you have to do is get your hot sweaty hands on the latest copy of Linux Journal.
Delicious
Digg
StumbleUpon
Reddit
Facebook








komik oyun
On February 23rd, 2009 komik oyunlar (not verified) says:
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
On February 23rd, 2009 giydirme oyunları (not verified) says:
great article thanks
i felt different about this book
On January 18th, 2005 Ben LeMasurier (not verified) says:
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?
On January 20th, 2005 Damian Wojsław (not verified) says:
Isn't it what the title says? Advanced UNIX Programming...
-trochej
The informational value of th
On January 15th, 2005 Anonymous (not verified) says:
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
On January 16th, 2005 DanKaspi (not verified) says:
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/sr=8-2/ref=sr_8_xs_ap_i2_xgl14/104-6017087-9908729?v=glance&s=books&n=507846
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
On December 18th, 2005 Aaron (not verified) says:
Well, it looks like the book is out. I didn't see a comparison review when I did a google search.
Post new comment