By Cormac Flanagan, Stephen N. Freund - PowerPoint PPT Presentation

About This Presentation
Title:

By Cormac Flanagan, Stephen N. Freund

Description:

Atomizer: A Dynamic Atomicity Checker For Multithreaded Programs ... other threads may change sb.length() e.g. other thread invokes sb.delete ... – PowerPoint PPT presentation

Number of Views:109
Avg rating:3.0/5.0
Slides: 37
Provided by: psw9
Category:

less

Transcript and Presenter's Notes

Title: By Cormac Flanagan, Stephen N. Freund


1
Atomizer A Dynamic Atomicity Checker For
Multithreaded Programs
  • By Cormac Flanagan, Stephen N. Freund
  • 24th April, 2008
  • Hong,Shin

2
Contents
  • Introduction
  • Multithreaded Programs
  • Formal definition of multithreaded program
  • The standard semantics of execution
  • The serialized semantics of execution
  • Atomicity requirements
  • Dynamic Atomicity Checking
  • Reduction
  • Checking atomicity via reduction
  • Inferring Protecting Locks

3
Introduction 1/4
  • A race condition occurs when two threads
    simultaneously access the same data variable, and
    at least one of the access is a write.
  • In practice, race conditions are commonly avoided
    by protecting each data structure with a lock.
  • Unfortunately, the absence of race condition is
    not sufficient to ensure the absence of errors
    due to unexpected interference between threads.

4
Introduction 2/4
  • Example java.lang.StringBuffer
  • public final class StringBuffer
  • public synchronized int length()
Write a Comment
User Comments (0)
About PowerShow.com