libcats.org
Главная

UNIX Systems Programming: Communication, Concurrency and Threads

Обложка книги UNIX Systems Programming: Communication, Concurrency and Threads

UNIX Systems Programming: Communication, Concurrency and Threads

,
This is an awesome book. You'll have to be patient when going through it. And you'll learn a lot if you follow along with the examples and make everything work. It took me probably 6 hours just to get through chapter 2 - not because I can't read, but because I'm paying attention to every little detail, and making sure I learn what's going on.

The other thing that came as a big surprise, was that this is the best introduction to C i've come across. I've read quite a few books on C. Generally, I get through these other books on C - I get the syntax and pointers, and headers, etc. What I can never get through in these other C books, is that they use Math for all the examples. Which bores me, and sometimes frustrates me - because what I want to do with systems programming is not math - that's just me.

Of all the C books I've read, this one, and "C - A Reference Manual 5th Edition" are the best C books.

One pitfall in the book, is that with most of the examples, the conditionals to check pointers, and some other conditionals are somewhat amateur looking (that's just me). For example, in chapter 2, the "listlib.c" file has tons of conditionals like this:

list_t **newptrs;
if(headptr == NULL)
{
errno = EINVAL;
return -1;
}

That started to confuse me, why not just write:

list_t **newptrs;
if(!headptr)
{
errno = EINVAL;
return -1;
}

Which is ok. So there are many times where it seems the author is either purposefully writing conditionals to be verbose for readers, or doesn't know how to simplify with "not" flips.

Another example:

if(ptr != NULL)

can be simplified to:
if(ptr)

Other than those small things, this book is great.
EPUB | FB2 | PDF | MOBI | TXT | RTF
* Конвертация файла может нарушить форматирование оригинала. По-возможности скачивайте файл в оригинальном формате.
Популярные книги за неделю:

О физической природе шаровой молнии

Автор:
Категория: science, science, exact
Размер книги: 5.03 Mb

Ключ к сверхсознанию

Автор:
Категория: Путь к себе
Размер книги: 309 Kb

Древо жизни

Автор:
Категория: Путь к себе
Размер книги: 1.70 Mb

Здоровье надо созидать

Автор:
Категория: Здоровье
Размер книги: 363 Kb
Только что пользователи скачали эти книги:

Песме далеке Земље

Автор:
Размер книги: 774 Kb

Drake, David - Leary 03 - Far Side Of The Stars

Автор:
Размер книги: 858 Kb

Robin Hobb - Tawny Man 3 - Fool's Fate

Автор:
Размер книги: 1.72 Mb

Dynamos

Автор: , Автор:
Категория: P_Physics, PPl_Plasma
Размер книги: 7.60 Mb

Biology of Fishes (English and French Edition)

Автор: , Автор:
Категория: Biology
Размер книги: 31.10 Mb

Too Rich and Too Dead

Автор:
Категория: fiction
Размер книги: 952 Kb

The Monsters of Templeton

Автор:
Категория: fiction
Размер книги: 318 Kb