最近学习java多线程有点迷糊,经过一天的整理,知道了什么是生产者,什么是消费者,以及消费者与生产者的关系:在Person类中是一个实体没有具体的对象,靠Input传入,Output读出,只有当Input有传入后,才能被Output读出,因此对呀Input和Output,要上一把同样的锁,synchroniz..
分类:
编程语言 时间:
2015-05-07 01:04:09
阅读次数:
192
利用脚本备份数据库指定目录只看到数据文件,看不到日志文件同时开两个窗口,一个运行./backup.sh另一个看tail-200frman.log在日志窗口看到如下信息查询rman-06214错误有三个步骤:obsolete的backupset的状态也会是AVAILABLE的。下次操作的时候,最好是按照如下步骤:1.crossch..
分类:
其他好文 时间:
2015-05-06 18:10:34
阅读次数:
143
importxlrd
importxlwt
##输入
input_ip=raw_input("请输入一个ip:")
input_count_values=int(raw_input("请输入-1or+1:"))
#新建电子表格
wbk=xlwt.Workbook(encoding=‘utf-8‘,style_compression=0)
new_sheet1=wbk.add_sheet(‘Sheet1‘,cell_overwrite_ok=True)
style=xlwt...
分类:
编程语言 时间:
2015-05-06 18:08:44
阅读次数:
209
1、db.serverStatus()看看分片性能信息db.serverStatus().connections;分片查看客户端连接数,mongod和mongos的连接属于长连接"connections":{"current":737,--当前活动连接量。连接到server的当前活跃连接数目"available":82--剩余空闲连接量。剩余的可用连接数目},db.serverS..
分类:
数据库 时间:
2015-05-06 15:19:24
阅读次数:
175
描述Many databases store the data in the character fields (and especially indices) using prefix compression. This technique compresses a sequence of strings A1, …, AN by the following method: if there ar...
分类:
其他好文 时间:
2015-05-06 15:13:26
阅读次数:
319
对于错误 GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PU...
分类:
系统相关 时间:
2015-05-06 10:43:05
阅读次数:
261
try { randomAccessFile = new RandomAccessFile(file, "rw"); lock = randomAccessFile.getChannel().tryLock();} catch (IOException e) { e.printStackTrace(...
分类:
编程语言 时间:
2015-05-06 10:38:19
阅读次数:
386
题目描述 Afandi is herding N sheep across the expanses of grassland when he finds himself blocked by a river. A single raft is available for transportatio...
分类:
其他好文 时间:
2015-05-05 21:16:02
阅读次数:
133
机器重启后显示 no boot device available.(如下图)检查bios中设置也是没问题的,因为装完系统后根本没动过什么。F11手动选择启动项也还是会跳到这里来。 这台机子做的Raid 1 ,一块热备盘,前端用的,硬盘也显示正常.后来同事进Raid设置中发现一块盘显示missi...
分类:
其他好文 时间:
2015-05-05 15:57:00
阅读次数:
3216
下午完成Eclipse下ADT和CDT的配置:ADT在线配置:启动 Eclipse,然后选择 Help > Software Updates…。在出现的对话框中,单击 Available Software 选项卡。单击 Add Site在 Add Site 对话框的 Location 字段中输入下面...
分类:
系统相关 时间:
2015-05-04 19:48:24
阅读次数:
219