`
cuiliwei
  • 浏览: 2395 次
  • 性别: Icon_minigender_1
  • 来自: 济南
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
实现代码: import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.ReentrantLock; public class BlockingQuery { private Object[] item; private int takeIndex, putIndex, count; private final ReentrantLock lock = new ReentrantLock(); private Condition notFull = lock.newConditi ...
网上有很多介绍在Ubuntu下开启SSH服务的文章,但大多数介绍的方法测试后都不太理想,均不能实现远程登录到Ubuntu上,最后分析原因是都没有真正开启ssh-server服务。最终成功的方法如下: sudo apt-get install openssh-server Ubuntu缺省安装了openssh-client,所以在这里就不安装了,如果你的系统没有安装的话,再用apt-get安装上即可。 然后确认sshserver是否启动了: ps -e |grep ssh 如果只有ssh-agent那ssh-server还没有启动,需要/etc/init.d/ssh start,如果看到sshd那 ...
JS乱码的解决 可依次选择"window">>"preferences">>"general">>"content types" 在右边的窗口中打开列表,选中"JavaScript",在下面的"default encoding"右边的输入框中输入"GBK"或"GB2312"再点"update"按钮,再打开JS文件就可以 如果没有提供选择项,在下面的“文件关联”中添加一个“*. ...
Global site tag (gtag.js) - Google Analytics