Docsity

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

Toggle sidebar
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