Race conditions: a case study

Steve Carr, Jean Mayo, Ching-Kuang Shene · 2001

Since detecting race conditions in a multithreaded or multiprocess program is an NP-hard problem, there is no efficient algorithm that can help detect race conditions in a program. As such, there are no easy-touse pedagogical tools. Most operating systems and concurrent programming textbooks only provide a formal definition and some trivial examples. This is insufficient for students to learn how to detect race conditions. This paper attempts to fill this gap by presenting a set of wellorganized examples, each of which contains one or more race conditions, for instructors to use in the classroom. This set of materials has been classroom tested for two years and the student's reaction has been very positive.

Read the paper · More papers on PaperTik