233k views
0 votes
Design a two-thread consensus protocol for a Stack class that provides two methods: push(x) and pop(). push(x) pushes a value onto the top of the stack, and pop() removes and returns the most recently pushed value.

User Justanoob
by
7.9k points

1 Answer

5 votes

Answer:

D. 10, 5.

Step-by-step explanation:

User Tobinharris
by
7.8k points