多选题
Given:
2. class Mosey implements Runnable {
3. public void run() {
4. for(int i=0; i<1000; i++) {
5. System.out.print(Thread.currentThread() .getId() +"-"+i+" ");
6. } } }
7. public class Stroll {
8. public static void main(String[] args) throws Exception {
9. Thread t1=new Thread(new Mosey());
10. //insert code here
11. }
12. }
Which of the following code fragments, inserted independently at line 10, will probably run most (or all) of the main thread"s run() method invocation before running most of the t1 thread"s run() method invocation? (Choose all that apply.)