Q30
MCQ2 marks, −0.67Operating systemsConsider the following two threads and that update two shared variables and . Assume that initially . Though context switching between threads can happen at any time, each statement of or is executed atomically without interruption. Which one of the following options lists all the possible combinations of values of a and b after both T1 and T2 finish execution?
Sign in to save attempts.
Keys: A–D or 1–4 choose, Enter checks, ← → move between questions.
Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.