操作系统代写 | Locking and Deadlock Assignment 2
When we started talking about threading, we focused primarily on the kinds of problems where threads didn’t need to communicate much with each other. Of course, threads need to talk to each other in as much as processes do in as much as any concurrent actor needs to talk to someone else: we have both communication that may need to happen, but also managing access to limited resources.
Think about this as cooks in a kitchen at a restaurant. They all have jobs to do that are fairly similar: they all have access to the same resources (food, ovens, fryers, etc) and they all have to coordinate with one another to access those resources.
We’re going to look at this from two perspectives: from the programmer’s perspective (how do I use this API?) and from the OS’s perspective (how does an OS implement this API?).
Chapters to read:
Recommended lab activities: