题目来源:https://leetcode.com/problems/print-in-order/
问题描述
1114. Print in Order
Easy
Suppose we have a class:
public class Foo {
public void first() { print("first"); }
public void second() { print("second"); }
public void third() { print("third"); }
}
The same instance of Foo will be passed to three different thread