@Test
public void testSychronized() throws InterruptedException {
Thread t1 = new Thread(new Runnable() {
@Override
public void run() {
/*System.out.println("I Hate U");
synchronized (this){
System.out.println("I Love U");
}*/
while (true){
System.out.println("子线程");
}
}
});
t1.setDaemon(false);
t1.start();
Thread.sleep(2000);
System.out.println("sss");
}
@Test
public void testSychronized()