![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工作笔记
冉冉升起的小太阳
这个作者很懒,什么都没留下…
展开
-
Semaphore学习
Semaphore学习前言Semaphore信号量特性使用 前言 初入职场,目前正在看代码流程,看到了一个不认识的类,网上找了很多材料,特此来总结一下。 Semaphore Semaphore负责协调各个线程。 以停车场为例, 假设停车场有三个车位,一开始三个车位都是空的。这时一下来了5辆车,看门人允许其中三辆车不受阻碍地进去,然后放下车栏,剩下的车辆则在入口等待,此后来的车辆也得在入口等待。直到...转载 2019-04-22 11:47:23 · 127 阅读 · 0 评论 -
Java中使用Runtime和Process类运行外部程序
运行外部程序 使用Runtime.getRuntime().exec()方法可以在java程序里运行外部程序。 exec(String command) exec(String command, String envp[], File dir) exec(String cmd, String envp[]) exec(String cmdarray[]) exec(String cmdarray...转载 2019-04-22 14:30:52 · 235 阅读 · 0 评论