Class Note: Concurrent Programming in Java | CMSC 433, Study notes of Programming Languages

Material Type: Notes; Professor: Sussman; Class: PROG LANG TECH & PDGMS; Subject: Computer Science; University: University of Maryland; Term: Unknown 1989;

Typology: Study notes

Pre 2010

Uploaded on 02/13/2009

koofers-user-xsb
koofers-user-xsb 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CMSC 433, Spring 2002 -Alan Sussman
(with Adam Porter) 1
CMSC433, Spring 2002
Concurrent Programming in Java
Alan Sussman
April 23, 2002
CMSC 433, Spring 2002 -Alan Sussman 2
Administrivia
Project 5 questions?
final test cases posted for parts 4 & 5
2nd midterm Thursday
practice exam posted, discussed today
CMSC 433, Spring 2002 -Alan Sussman 3
Last time
State dependence
Collection traversal balking/snapshot iterators
Guarding wait on arbitrary state predicate
busy wait liveness issue
suspend another thread must do wakeup
Java wait()/notify() must deal with interrupts
timeouts another way of coming out of a suspend
Single class can implement multiple state
dependent policies

Partial preview of the text

Download Class Note: Concurrent Programming in Java | CMSC 433 and more Study notes Programming Languages in PDF only on Docsity!

CMSC 433, Spring 2002 - Alan Sussman

(with Adam Porter) 1

CMSC433, Spring 2002

Concurrent Programming in Java

Alan Sussman

April 23, 2002

CMSC 433, Spring 2002 - Alan Sussman 2

Administrivia

• Project 5 questions?

  • final test cases posted for parts 4 & 5

• 2nd^ midterm Thursday

  • practice exam posted, discussed today

CMSC 433, Spring 2002 - Alan Sussman 3

Last time

• State dependence

  • Collection traversal – balking/snapshot iterators
  • Guarding – wait on arbitrary state predicate
    • busy wait – liveness issue
    • suspend – another thread must do wakeup
    • Java wait()/notify() – must deal with interrupts
    • timeouts – another way of coming out of a suspend
  • Single class can implement multiple state dependent policies