The .NET Framework 4 includes significant advancements for developers writing parallel and concurrent applications, including Parallel LINQ (PLINQ), t...
分类:
Web程序 时间:
2014-08-03 10:11:35
阅读次数:
456
今天在工作中用到了并行,于是就总结了一下关于并行的方法使用,也为自己做个备忘。命名空间:System.Threading.Tasks;重要的类:Parallel;重要的方法:3个;[其他都是重载]一.Invoke方法:任务已生成;用法一:注意:1.都是指单独的任务或活动;【不要相互调用】 2.需要事...
分类:
其他好文 时间:
2014-08-01 18:59:02
阅读次数:
210
代码如下:Backup Log DNName with no_log '这里的DNName是你要收缩的数据库名,自己注意修改下面的数据库名,我就不再注释了。godump transaction DNName with no_log goUSE DNNameDBCC SHRINKFILE (2)Go
分类:
数据库 时间:
2014-08-01 18:57:32
阅读次数:
237
A data stream is a real-time, continuous, ordered sequence of items. Some examples include sensor data, Internet traffic, financial tickers, on-line auctions, and transaction logs such as Web usage lo...
分类:
其他好文 时间:
2014-08-01 13:47:14
阅读次数:
235
事务(transaction)是数据库管理系统的执行单位,可以是一个数据库操作(如Select操作)或者是一组操作序列。事务ACID属性,即原子性(Atomicity)、一致性(Consistency)、隔离性(Isolation)、持久性(Durability)。原子性:保证事务中的所有操作全部执行或全部不执行。例..
分类:
数据库 时间:
2014-07-31 21:14:57
阅读次数:
333
前言:朋友咨询我说执行简单的update语句失效,症状如下:mysql> update order_info set province_id=15 ,city_id= 1667 where order_from=10 and order_out_sn='1407261241xxxx';ERROR 1205 (HY000): Lock wait timeout exceeded; try re...
分类:
其他好文 时间:
2014-07-31 13:25:26
阅读次数:
180
Hybrid transaction memory systems and accompanying methods. A transaction to be executed is received, and an initial attempt is made to execute the tr...
分类:
其他好文 时间:
2014-07-31 02:26:35
阅读次数:
309
1.查看当前会话隔离级别select @@tx_isolation;2.查看系统当前隔离级别select @@global.tx_isolation;3.设置当前会话隔离级别set session transaction isolatin level repeatable read;4.设置系统当前...
分类:
数据库 时间:
2014-07-30 23:17:25
阅读次数:
298
Matlab的parfor并行编程
通常消耗最多计算资源的程序往往是循环。把循环并行化,或者优化循环体中的代码是最常用的加快程序运行速度的思路。Matlab提供了parfor关键字,可以很方便的在多核机器或集群上实现并行计算。
parfor关键字的使用
由for关键字引导的循环通常为串行运行,如果改为parfor则可以由多个worker以并行方式执行。parfor可以将n次循环分解为...
分类:
其他好文 时间:
2014-07-29 14:52:18
阅读次数:
257