[root@shylock dstat]# dstat --listinternal: aio, cpu, cpu24, disk, disk24, disk24old, epoch, fs, int, int24, io, ipc, load, lock, mem, net, pag...
分类:
数据库 时间:
2014-07-22 22:52:14
阅读次数:
552
非阻塞的程序 应该保障的一些特性 : 等待无关性wait-free:能确保每次的调用在有限的步数之内完成,不管其他调用的步骤有多少。杀掉几个线程 锁无关性lock-free:执行这段程序的某些线程会被延迟,但必须确保至少...
分类:
其他好文 时间:
2014-07-22 09:10:35
阅读次数:
374
创建表:drop table tcreate table if not exists t (t string) partitioned by (log_date string) row format delimited fields terminated by '\t' lines terminat...
分类:
其他好文 时间:
2014-07-21 08:31:39
阅读次数:
281
Interesting Calculator
Time Limit: 2 Sec Memory Limit: 128 MB
Submit: 163 Solved: 49
Description
There is an interesting calculator. It has 3 rows of buttons.
Row 1: button 0, 1,...
分类:
其他好文 时间:
2014-07-20 22:35:23
阅读次数:
234
一些例子。1、显示gopher帐号所在行至最后一行。awk‘/^gopher/{row=NR;while(getline<"passwd"){++i;FS=":";if(i>=row){print$0}}}‘passwdgetline<"filename"若读取成功,则返回非0,当读文件完后,会返回0。awk-F:‘NR==FNR{if($1~/^gopher/){row=NR};next}{if(FNR>..
分类:
其他好文 时间:
2014-07-20 15:31:51
阅读次数:
353
SqlServer 2008“Msg 1807, Level 16, State 3, Line 1Could not obtain exclusive lock on database ‘model’. Retry the operation later.Msg 1802, Level 16, S...
分类:
数据库 时间:
2014-07-19 17:28:23
阅读次数:
1153
css js html php" . $row['id'] . " " . $htmlmsg . ""; } $msg = "" . $msg . ""; // 数据内容 ...
分类:
数据库 时间:
2014-07-19 15:38:54
阅读次数:
333
在SQL Server中,利用SQL进行分页的方法也有很多,今天要总结的是SQL Server 2005中引入的OVER开窗口函数,然后利用开窗函数进行分页。 示例代码如下: -- 设置数据库上下文USE TSQLFundamentals2008;GO-- 使用ROW_NUMBER分页,查找第1-1...
分类:
其他好文 时间:
2014-07-19 14:18:50
阅读次数:
285
RAC环境下的阻塞不同于单实例情形,因为我们需要考虑到位于不同实例的session.也就是说之前查询的v$session,v$lock相应的应变化为全局范围来查找。本文提供了2个查询脚本,并给出实例演示那些session为阻塞者,哪些为被阻塞者。有关阻塞的概念以及单实例环境下的阻塞请参考:Oracle 阻塞(blocking blocked)1、演示环境scott@DEVDB> select *...
分类:
其他好文 时间:
2014-07-19 02:41:26
阅读次数:
378
Description
Some of you may have played a game called 'Blocks'. There are n blocks in a row, each box has a color. Here is an example: Gold, Silver, Silver, Silver, Silver, Bronze, Bronze, Bronze, Go...
分类:
其他好文 时间:
2014-07-18 11:23:05
阅读次数:
280