Book Image

Hands-On System Programming with Linux

By : Kaiwan N. Billimoria, Tigran Aivazian
Book Image

Hands-On System Programming with Linux

By: Kaiwan N. Billimoria, Tigran Aivazian

Overview of this book

The Linux OS and its embedded and server applications are critical components of today’s software infrastructure in a decentralized, networked universe. The industry's demand for proficient Linux developers is only rising with time. Hands-On System Programming with Linux gives you a solid theoretical base and practical industry-relevant descriptions, and covers the Linux system programming domain. It delves into the art and science of Linux application programming— system architecture, process memory and management, signaling, timers, pthreads, and file IO. This book goes beyond the use API X to do Y approach; it explains the concepts and theories required to understand programming interfaces and design decisions, the tradeoffs made by experienced developers when using them, and the rationale behind them. Troubleshooting tips and techniques are included in the concluding chapter. By the end of this book, you will have gained essential conceptual design knowledge and hands-on experience working with Linux system programming interfaces.
Table of Contents (21 chapters)

Summary

In this chapter, we have attempted to show the reader several key points, tools and techniques; among them:

  • Humans will make mistakes; this is especially true with memory unmanaged languages (C, C++).
  • There is a real need for powerful memory debug tools on nontrivial codebases.
  • We covered two of these best in class dynamic analysis tools in detail:
    • Valgrind's Memcheck
    • Sanitizers (primarily ASan)
  • Glibc allows some tuning of malloc via the mallopt(3) API, as well as via environment variables.
  • Ensuring complete code coverage when building test cases is absolutely crucial to the success of a project.
The next chapter is related to the essentials aspects of file I/O which is essential for a component reader to know. It introduces you to performing efficient file I/O on the Linux platform. We would request the readers to go through this chapter which is available here...