Conditon中的await()对应Object的wait(),Condition中的signal()对应Object的notify(),Condition中的signalAll()对应Object的notifyAll() 两个线程交替执行例子(同理生产者消费者也是这样交替执行): package ...
分类:
其他好文 时间:
2021-01-18 11:05:41
阅读次数:
0
1、整数比较:-eq 等于,如:if [ "$a" -eq "$b" ] 或 if [ $a -eq $b ]-ne 不等于,如:if [ "$a" -ne "$b" ]-gt 大于,如:if [ "$a" -gt "$b" ]-ge 大于等于,如:if [ "$a" -ge "$b" ]-lt 小 ...
分类:
系统相关 时间:
2021-01-16 11:43:35
阅读次数:
0
以前使用WebForm变成时,下拉框传值只需直接在后台绑定代码就可以了。现在我们来看看在MVC中DropDownList是如果和接受从Controller传过来的值的。 第一种:使用DropDownList 控制器代码: public ActionResult Index() { //1.1查询Yz ...
分类:
Web程序 时间:
2021-01-16 11:41:04
阅读次数:
0
第一种方法: $sudo su #echo "209.85.228.22 dl-ssl.google.com">> /etc/hosts #echo "209.85.228.22 dl.google.com">>/etc/hosts 查看添加成功 #cat /etc/hosts 第二种方法: # 修 ...
分类:
系统相关 时间:
2021-01-15 11:52:23
阅读次数:
0
RHEL的YUM源需要注册用户才能更新使用说白了就是要收费了,由于CentOS和RHEL基本没有区别,并且CentOS已经被REHL收购。所以将RHEL的YUM源替换为CentOS即可 [redhat@root ~]$ cat /etc/redhat-release 查看对应的版本号Red Hat ...
分类:
其他好文 时间:
2021-01-15 11:46:41
阅读次数:
0
有时Tomcat的启动窗口一闪而过,根本就看不出启动过程中发生了什么错误。这中间的原因有好多种,最常见的解决办法就是使用run命令,打开startup.bat文件,找到下面这行: call "%EXECUTABLE%" start %CMD_LINE_ARGS% 修改为: call "%EXECUT ...
分类:
其他好文 时间:
2021-01-15 11:45:28
阅读次数:
0
Inline vs. block-level elements: a demonstration HTML (Hypertext Markup Language) elements historically were categorized as either "block-level" eleme ...
分类:
其他好文 时间:
2021-01-14 11:28:29
阅读次数:
0
MP 可以实现 SQL 的分析打印功能,输出sql执行时间以及真实执行的SQL语句 step1:引入p6spy 依赖引入 <dependency> <groupId>p6spy</groupId> <artifactId>p6spy</artifactId> <version>3.8.2</vers ...
分类:
数据库 时间:
2021-01-14 11:21:39
阅读次数:
0
#!/bin/bashecho -e "\033[36m \t\t\t 優化系統核心參數 \t\t\t \033[0m" grep 'keepalive_time = 1200' /etc/sysctl.conf &>/dev/null if [ $? -ne 0 ];then cat >> /et ...
分类:
其他好文 时间:
2021-01-14 10:58:27
阅读次数:
0
kubectl is the official Kubernetes CLI and it interacts with your Kubernetes cluster's API server via its API. It is configured by default using the ~ ...
分类:
Web程序 时间:
2021-01-14 10:52:04
阅读次数:
0