problem: (You might use up to two pages and single-space for this problem) Consider a skate rental shop which has two rental agents, a counter, and a waiting area which can accommodate up to four customers on a bench and gives standing room for additional patrons. By law the shop has a maximum customer capacity of 10. The rental agent fills a patrons request to rent a pair of skis. A customer can’t enter the shop if it is filled to capacity. If the previous condition is false, a customer will either take a seat on the bench or stand if the bench is full. As soon as a server is free, the customer which has been on the bench the longest is served and if any patrons are standing, the one that has been in the shop the longest takes a seat on the bench. When a pair of skates is rented, the rental agent accepts payment then serves the next patron (if one is present). Your task is to prepare a program in pseudo-code using semaphores. The rental agent is a task and each customer.
problem: Given a four level hierarchical storage system comprising of: cache, primary storage, secondary storage, and tertiary storage. Suppose the following: programs might be executed on any of the four levels; each level comprises of the same amount of real storage and the range of addresses on each level is identical. The speed at that programs are run is grouped from slowest (tertiary storage) to fastest (cache), where each layer is 10 times faster than the previous lower layer. There exists one CPU in this system, which might run one program at a time. Programs might be shuttled from any layer to any layer.
i) Why might the operating system choose to move information from a faster level to a slower level, bypassing an intermediate level, IE. from cache to secondary storage?
ii) Why would items move from a slower layer to a faster layer?
iii) Should information be allowed to move from any level to any level or should transfers only occur from adjacent levels? describe in detail.
problem: Determining the time quantum for a job is a crucial task. Given the assumptions that the average switching time between procedures is s, and the average amount of time an I/O bound procedure uses before generating an I/O request is t (t >> s). Discuss the effect of each of the following quantum settings denoted by q.
i) q = infinity
ii) q is slightly greater than zero
iii) q = s
iv) s < q < t
v) q = t
vi) q > t
problem: Dr. Zeus provided an extensive analysis of the dependability properties of operating systems. Her report included the relative value of the manageability of an operating system and a potential set of metrics which directly relate manageability to the dependability of that operating system. Unfortunately Dr. Zeus won the lottery, took off for parts unknown and in the process didn’t give her report – some say she is writing books for children (the word on the street is that the books do not include operating system topics). Your task is to provide you’re metric for system manageability to substitute for the Zeus on the Loose Report. Be advised that Dr. Zeus produced detailed and supported work prior to her disappearance.
problem: A virtual storage system has page size p, block size b, and fixed-length record size r. Discuss the various relationships among p, b, and r that make for the most efficient system. Give a detailed account of your explanation.