Gate2018 cs Q56

  • Option : C
  • Explanation :
    Full = N, empty = 0, mutex = 1
    Initially buffer will be empty, so consumer should not start first, so options B, D are eliminated.
    With option A consumer will never consume the item, so it is wrong.
    Option ‘C’ is the correct answer which proper functionality of produce and consumer.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *