Skip to content Skip to navigation

Connexions

You are here: Home » Content » Concurrent Programming and Verification: Outline

Navigation

Recently Viewed

This feature requires Javascript to be enabled.

Concurrent Programming and Verification: Outline

Module by: Ian Barland, John Greiner, Moshe Vardi. E-mail the authors

User rating (How does the rating system work?)
Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

:
(0 ratings)

Verification of Concurrent Programs

How can we know whether our programs have bugs? This is the pre-eminent question in software engineering today. Test suites are important, but no amount of tests can conclusively show a program to be bug-free. In concurrent programs in particular, bugs can be difficult to find and replicate through trial (and error).

Ideally we would prove that a program meets certain specs. How to meet this goal routinely has been a long-standing goal in computer science. Historically, there have been significant difficulties in making such proofs practical, but verification technology is significantly improving. In this module, we look at some of the issues involved — how to describe, reason about, and verify properties — specifically as applied to concurrency.

We will look at two related ways to understand concurrent programs. First, we write small programs in Promela, a language with a familiar C-like syntax, but suited for concurrent programs. We use Promela's partner tool, SPIN, to verify various properties our program's behavior. Second, we introduce state-based transition systems — an equivalent model for concurrent programs, but one which is more suitable for reasoning about their behavior.

Together, Promela and SPIN are designed to easily let us check for many common concurrency behaviors. Historically, SPIN allowed only a collection of special-purpose checks. More generally, however, we can use temporal logic to express our own properties for SPIN to check. We will look at this special kind of logic and see how to apply it to verification.

This module is meant to be taught within the context of a concurrent programming course, or an operating systems course covering the basics of concurrent programming. As such, this will not cover concurrent programming techniques. However, we will quickly review the necessary background.

Outline

Content actions

Give Feedback:

E-mail the module authors | Rate module ( How does the rating system work?)

Rating system

Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

(0 ratings)

Download:

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.

| A lens (?)

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks