Home

Posix.4 Programmers Guide

Title
Posix.4 Programmers Guide
Publisher
O'Reilly Media
ISBN
9781565920743
Published
1995-01-08
Language
English
Genre
Computers / Operating Systems / Linux
Plats
~/lib
Author(s)
Description
What's "real-world programming"?

Real-world programming (typically called real-time programming) is programming that interacts in some way with the "real world" of daily life. At one time, real-time systems were confined to very esoteric applications, like rocket guidance systems. Now, they play a role in almost every aspect of life: they control the brakes on your car, video games, automatic bank tellers -- and the disk drive in your computer. It won't be long before mundane devices like toasters and hair dryers have microprocessors built in, to say nothing of multimedia devices that haven't even been invented yet.

Real-world applications are characterized by deadlines. If the brake processor in your car doesn't meet a deadline, your car doesn't stop; if your video game doesn't meet a deadline, the Klingons don't die when you shoot them; if your ATM doesn't meet a deadline, you may start looking for another bank. When you've just rear-ended another car, it's no consolation that a sudden flurry of input slowed down your brake processor, so it couldn't react quickly enough when you hit the pedal.

This book covers the POSIX.4 standard for portable real-time programming. The POSIX.4 standard itself is a massive document that defines system interfaces for asynchronous I/O, scheduling, communications, and other facilities. However, this book does more than explain the standard. It provides a general introduction to real-time programming and real-time issues: the problems software faces when it needs to interact with the real world and how to solve them. And, unlike most books about standards, this one isn't just readable -- it's enjoyable! If you're at all interested in real-time applications -- which include just about everything from telemetry to transaction processing -- this book will be an essential reference.

Chapters include:


The Basics of Real-Time: Multiple Tasks
Better Coordination: Messages, Shared Memory, and Synchronization
On Time: Scheduling, Time, and Memory Locking
I/O for the Real World
Includes programming exercises, solutions, and reference manual pages.