摘要:
路径分隔符: Windows操作系统: \,反斜杠 Linux macOS操作系统:分隔符:/,斜杠 Windows系统是支持Linux分隔符:C:/Ruby/pro/aa.jpeg System.out.println(File.pathSeparator);//; System.out.prin 阅读全文
posted @ 2020-07-30 01:05
1769987233
阅读(135)
评论(0)
推荐(0)
摘要:
package com.qf.demo01; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecut 阅读全文
posted @ 2020-07-30 00:56
1769987233
阅读(79)
评论(0)
推荐(0)
摘要:
线程之间的通信:wait(),notify(),notifyAll() wait()——>让线程进入阻塞状态,暂停执行。一直阻塞 notify()——>唤醒线程,wait()住的线程,被唤醒。如果多个线程wait()了,唤醒其中的一个。 notifyAll()——>唤醒所有。 语法要求:必须在同步中 阅读全文
posted @ 2020-07-30 00:50
1769987233
阅读(142)
评论(0)
推荐(0)