检索出死锁进程的ID SELECT * FROM pg_stat_activity WHERE datname='数据库名' and waiting='t'; 找到对用的pid列的值 或 select oid from pg_class where relname='可能锁表了的表' --oid是每 ...
分类:
数据库 时间:
2018-09-04 19:49:55
阅读次数:
1109
server端伪代码: server端: client端: 伪代码: 运行结果: ...
分类:
编程语言 时间:
2018-09-02 21:43:55
阅读次数:
205
Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All the c ...
分类:
其他好文 时间:
2018-09-02 17:13:40
阅读次数:
119
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules ...
分类:
其他好文 时间:
2018-09-02 15:30:11
阅读次数:
171
内存空间使用状态 free [OPTION] b 以字节为单位 m 以MB为单位 g 以GB为单位 h 易读格式 o 不显示 /+buffers/cac t 显示RAM + swap的总 s n 刷新间隔为n秒 c n 刷新n次后即退出 vmstat命令:虚拟内存信息 vmstat [options ...
分类:
移动开发 时间:
2018-09-02 00:07:52
阅读次数:
249
生成配置文件,即将现有的配置文件输出到指定目录位置: 修改配置文件信息: 如果当前目录下还没有创建logs文件夹,请先创建logs文件夹。 后台启动proxy: 查看启动日志: 我们会发现proxy一直处于waiting online状态,这是因为没有将admin与proxy、dashboard关联 ...
分类:
其他好文 时间:
2018-08-29 14:54:44
阅读次数:
2206
1、run()和start()的区别 2、线程的基本属性和方法 NEW :还没调用start RUNABLE:正在执行run或者正在等待cup分配时间 BLOCKED:被阻塞 WAITING:被阻塞 TIMED_WAITING:被阻塞 TERMINATED:结束 NEW :还没调用start RUN ...
分类:
编程语言 时间:
2018-08-27 14:17:52
阅读次数:
176
"NettyClientWorkerThread_1" #43 daemon prio=5 os_prio=0 tid=0x00007f1018010000 nid=0x83 waiting on condition [0x00007f0ff6cb0000] java.lang.Thread.Sta ...
分类:
编程语言 时间:
2018-08-23 13:02:09
阅读次数:
2056
[root@xxx bin]# yum -y install lrzszLoaded plugins: fastestmirrorExisting lock /var/run/yum.pid: another copy is running as pid 1580.Another app is cu ...
分类:
移动开发 时间:
2018-08-23 02:23:49
阅读次数:
370
对于在操作系统中线程的 运行/就绪 状态,java语言统一使用 RUNNABLE 状态来表示。 对于在操作系统中线程的 阻塞 状态,java语言中使用 BLOCKED、WAITING和TIME_WAITING这三个状态分别表示。 对于在操作系统中线程的 运行/就绪 状态,java语言统一使用 RUN ...
分类:
编程语言 时间:
2018-08-19 14:03:41
阅读次数:
139