Building Secure Software: How to Avoid Security Problems the Right Way
by John Viega, Gary McGraw
9. Race Conditions
“O let not Time deceive you,You cannot conquer Time.In the burrows of the NightmareWhere Justice naked is,Time watches from the shadowAnd coughs when you would kiss.”
—W. H. AUDEN“AS I WALKED OUT ONE EVENING”
Race conditions are among the most common classes of bugs found in deployed software. They are only possible in environments in which there are multiple threads or processes occurring at once that may potentially interact (or some other form of asynchronous processing, such as with UNIX signals). People who have experience with multithread programming have almost certainly had to deal with race conditions, regardless of whether they know the term. Race conditions are a horrible problem because a program that seems to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access