SLIDES CREATED BY: SHRIDEEP PALLICKARA L8.1
CS455: Introduction to Distributed Systems [Spring 2020]
- Dept. Of Computer Science, Colorado State University
COM
OMPUTE TER SCI CIENCE NCE DEPAR EPARTMEN ENT
CS455: Introduction to Distributed Systems ht http: p://www.cs. cs.co colost state.edu/~cs4 cs455
CS 455: INTRODUCTION TO DISTRIBUTED SYSTEMS
[THREAD SAFETY]
Shrideep Pallickara Computer Science Colorado State University
Threads have you in a bind?
With Objects and Concurrency at play Are nerves about to fray? Here’s something to have those worries abate It’s just about access to shared, mutable state
COM
OMPUTE TER SCI CIENCE NCE DEPAR EPARTMEN ENT
Professor: SHRIDEEP PALLICKARA CS455: Introduction to Distributed Systems ht http: p://www.cs. cs.co colost state.edu/~cs4 cs455
Frequently asked questions from the previous class survey
¨ Why would we want to synchronize static methods? ¨ Can you call a static synchronized at the same time as a synchronized
method? Yes.
¨ Can too much synchronization lead to starvation? Yes. ¨ How can you have a lock object over multiple methods?