Computer Science, asked by urmilamohanty80, 2 months ago


Write an algorithm to buy bread from shop.​

Answers

Answered by Anonymous
1

Explanation:

The Bakery algorithm is one of the simplest known solutions to the mutual exclusion problem for the general case of N process. Bakery Algorithm is a critical section solution for N processes. The algorithm preserves the first come first serve property.

Before entering its critical section, the process receives a number. Holder of the smallest number enters the critical section.

If processes Pi and Pj receive the same number,

Answered by Nikitacuty
5

Question:-

Write an algorithm to buy bread from shop.​

Answer:-

Algorithm to buy bread from shop :-

Step 1 : Start.

Step 2 : Go to bread shop.

Step 3 : Ask for a bread.

Step 4 : Ask bread's price.

Step 5 : Pay money.

Step 6 : Get back to home.

Step 7 : Stop.

Similar questions