Working With Unix Processes
Год: 2011
Автор: Jesse Storimer
Издательство: самиздат
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 143
Описание: In Working With Unix Processes you’ll learn simple, powerful techniques that can help you write your own servers and debug your full stack when things go awry. The techniques and methods that give you primitives for concurrency, daemons, spawning processes, and signals transcend programming languages and have been used unchanged for decades. You can bet they’ll be relied upon for years to come.
The book takes an incremental approach. It begins with the very basics of Unix processes and system calls and builds all the way up to writing daemon processes and preforking servers. Once you’ve worked through the basics you’ll dive into two real-world projects, Unicorn and Resque, that make use of Unix processes.
This is not a book about Unix system administration or shell programming. This book covers the concepts and techniques that underlie tools like shells, servers, and daemons. It will help you understand the building blocks that these tools are built on.
Оглавление
Introduction
Primer
Processes Have IDs
Processes Have Parents
Processes Have File Descriptors
Processes Have an Environment
Processes Have Arguments
Processes Have Names
Processes Have Exit Codes
Processes Can Fork
Orphaned Processes
Processes Are Friendly
Processes Can Wait
Zombie Processes
Processes Can Get Signals
Processes Can Communicate
Daemon Processes
Spawning Terminal Processes
Ending
Appendix: How Resque Manages Processes
Appendix: How Unicorn Reaps Worker Processes
Appendix: Preforking Servers
Appendix: Spyglass