Introducing 

Prezi AI.

Your new presentation assistant.

Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.

Loading…
Transcript

DINING

Conclusion

PHILOSPHERS

a set of threads/processes ceases

to make progress because each is waiting for another in the set

DEADLOCK

This is Our problem

When can DL occur?

- java.util.concurrent library has what we need

Hold and wait

Mutual Exclusion

- advantage of cheking if the lock is held before

requesting it

- You can request and release these locks anywhere

!

- this also means you need to be very careful that locks

are always released

List top competitors

Circular Wait

No Preemption

A solution

http://undergraduate.csse.uwa.edu.au/units/CITS3213/lectures2/lect4.pdf

Illustrate the complexities of managing shared state in a multithread enviroment.

Using alternative

locking

instead of

synchronized

Projections

WHAT IS IT?

Learn more about creating dynamic, engaging presentations with Prezi