Does mutual exclusion uses flags and turns
Yes
What is bakery algorithm
In bakery algorithm, before entering the critical section, process receives a ticket number. Holder of smallest ticket number enters the critical section
who invented bakery algorithm
Leslie lamport