Consider a scenario where XYZ shopping mall has only one ATM. At a time only one...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider a scenario where XYZ shopping mall has only one ATM. At a time only one person can access the ATM for transaction. Time 10:00 AM Adil came first to use ATM and start using it. Time 10:04 AM While Adil is using ATM, Daniyal have reached outside tl ATM and wait for his turn. Time 10:06 AM Adil is still not out and continue using ATM for various tasks. During this time first Bilal and then Atif come to use ATM Time 10:08 AM Adil leave the ATM, and next person in the queue using the ATM. Time 10:12 AM ATM is empty for use, next person in the queue start us ATM. At this time Saad came to see the queue but did not join the queue. Time 10:15 AM Last person is using the ATM no more person waiting ir the queue. Assuming this whole scenario as a problem of mutual exclusion using semaphores and Initial value of S = 1, Make a table and mention the value semaphore, State of Queue and type of operation and process(Person) name which is in the critical section for each time stamp. Consider a scenario where XYZ shopping mall has only one ATM. At a time only one person can access the ATM for transaction. Time 10:00 AM Adil came first to use ATM and start using it. Time 10:04 AM While Adil is using ATM, Daniyal have reached outside tl ATM and wait for his turn. Time 10:06 AM Adil is still not out and continue using ATM for various tasks. During this time first Bilal and then Atif come to use ATM Time 10:08 AM Adil leave the ATM, and next person in the queue using the ATM. Time 10:12 AM ATM is empty for use, next person in the queue start us ATM. At this time Saad came to see the queue but did not join the queue. Time 10:15 AM Last person is using the ATM no more person waiting ir the queue. Assuming this whole scenario as a problem of mutual exclusion using semaphores and Initial value of S = 1, Make a table and mention the value semaphore, State of Queue and type of operation and process(Person) name which is in the critical section for each time stamp.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these computer network questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
A 30-year maturity bond making annual coupon payments with a coupon rate of 12% has duration of 11.54 years and convexity of 192.4. The bond currently sells at a yield to maturity of 8%. Use a...
-
Multiple-Concept Example 7 discusses how problems like this one can be solved. A +6.00 C charge is moving with a speed of 7.50 104 m/s parallel to a very long, straight wire. The wire is 5.00 cm...
-
Apple wanted to compete more effectively with Amazons Kindle so more iPad owners would read books on iPads instead of Kindle. Apple met with the six largest book publishers and promised them better...
-
A trade association (or trade group) is an organization that firms in the same industry form to collect and disseminate trade information, offer legal and technical advice, furnish industry-related...
-
For financial reporting, Clinton Poultry Farms has used the declining-balance method of depreciation for conveyor equipment acquired at the beginning of 2008 for $2,560,000. Its useful life was...
-
Question 2) Suppose there were an alternative replacement machine that could do the same job as the new stamping machine under your consideration in Question 1. The alternate choice offers the...
-
18. Add the Office field to the Filters area of the Pivot Table. Filter the table so that only organizations with private offices are visible.
-
FCC Corporation has an overhead application rate of 154% of direct labor costs. How much overhead would be allocated to a job if it required total labor costing $182,000 (mund to the nearest whole...
-
Cathy May deposits $15,000 at the end of each year for 10 years in an account paying 8% compounded annually. She then puts the total amount on deposit in another account paying 9% compounded...
-
Describe specific cultural beliefs around PARKISON DISEASE and how the treatment and management of the disease might be affected by cultural beliefs. Identify strategies that can be used to promote...
-
In the context of programming, UML class diagrams provide an overview of your programming goal without wrapping yourself around the metaphorical axle. UML class diagrams list the two essential...
-
Convert the following to vertex form. f(x) = (x+2)(x+4) Make sure to write your answer in function form, i.e., f(x) = ...
-
Context/Scenario In the last few years, employee well-being has become an increasingly critical issue in people management.Organisations which have not paid sufficient attention to this issue risk...
-
A driller is pulling on a stuck drillstring. The derrick is capable of supporting a maximum equivalent derrick load of 500,000 lbf, the drilling line has a strength of 51,200 lbf, and the strength of...
-
Why did management adopt the new plan even though it provides a smaller expected number of exposures than the original plan recommended by the original linear programming model?
-
Use Equation (3-20) to make a plot of f(E,T) as a function of E for T = 300, 500, 800, and 1200 K. a. What is the fraction of molecules that have sufficient energy to pass over a energy barrier of 25...
-
The major ways to utilize, capture, or store the suns energy are solar thermal solar voltaic, biomass conversion, solar water splitting and solar chemical. Solar chemical refers to processes that...
-
As the final edits to the Sixth Edition were being made, the coronavirus pandemic struck and it was decided to expand Problem P9-7 and apply it to the pandemic. (Mayur Tikmani, Devosmita Sen, Manjeet...
-
Compare the magnitude of the momenta of a \(0.010 \mathrm{~kg}\) bullet fired from a rifle at \(1300 \mathrm{~m} / \mathrm{s}\) and a \(6.5-\mathrm{kg}\) bowling ball lumbering across the floor at...
-
(a) Classify and give examples of the kinds of processes that can change (i) the number of loaves of bread in a bakery, (ii) the number of Lego pieces inside a house, and (iii) the number of coins in...
-
Cite at least two possible choices of system in each of the following situations. For each choice, make a sketch showing the system boundary and state which objects (excluding air) are inside the...
Study smarter with the SolutionInn App