导出数据mysqldump --opt -hlocalhost -uusername -ppassword --skip-lock-tables databasename>database.sql 导入数据mysql> source 路径\**.sql创建中文名称数据库mysql> set n...
分类:
数据库 时间:
2014-07-22 22:53:56
阅读次数:
274
/** \brief poj 1502--Dijkstra
*
* \ date 2014/7/15
* \ state AC
* *
*/
#include
#include
#include
#include
using namespace std;
#define inf 0x03f3f3f3f
const int MAXN=101;
int n;
int co...
分类:
其他好文 时间:
2014-07-18 21:22:31
阅读次数:
192
锁应该说是由关系型数据库ACID(Atomicity,Consistency,Isolation,Durability)特性而引出的。以下将测试在创建及更新表过程中SQL Server锁资源分配情况获取当前会话的事务隔离级别:DBCC USEROPTIONS测试环境:SQL SERVER 2008 ...
分类:
数据库 时间:
2014-07-18 20:07:52
阅读次数:
359
Sending images can be done using theHttpComponents libraries. Download the latest HttpClient (currently4.0.1) binary with dependencies package and co....
分类:
移动开发 时间:
2014-07-18 19:17:57
阅读次数:
227
以下文章中详细介绍了update操作过程中更新锁及排它锁的分配情况http://blog.csdn.net/zjcxc/article/details/27351779按照以上文章中的追踪方式,发现其实文章lock(2)——创建及更新表过程中SQL SERVER锁资源分配情况中我们通过sys.dm_...
分类:
其他好文 时间:
2014-07-18 00:31:59
阅读次数:
326
在线程实际运行过程中,我们经常需要多个线程保持同步。这时可以用互斥锁来完成任务;互斥锁的使用过程中,主要有pthread_mutex_init,pthread_mutex_destory,pthread_mutex_lock,pthread_mutex_unlock这几个函数以完成锁的初始化,锁的销毁,上锁和释放锁操作。
一,锁的创建
锁可以被动态或静态创建,可以用宏PTHRE...
分类:
编程语言 时间:
2014-07-17 16:38:59
阅读次数:
303
1.封装Mutex1.1 封装前先总结一下常用的mutex操作有:pthread_mutex_init(&mutex, NULL ); //初始化一个互斥锁pthread_mutex_destroy(&mutex); //销毁一个互斥锁pthread_mutex_lock(&mutex); //上锁...
分类:
编程语言 时间:
2014-07-16 17:41:55
阅读次数:
242
原文出处:http://blogs.microsoft.co.il/blogs/arik/archive/2010/07/12/step-into-net-framework-4-0-source-code.aspx本文将向你展示如何配置Visual Studio 2010逐语句执行.NET Fra...
分类:
Web程序 时间:
2014-07-16 16:53:04
阅读次数:
371
protected void WriteLog(string message) { lock (lockObject) { var file = System.IO.File.AppendText...
分类:
编程语言 时间:
2014-07-16 13:51:46
阅读次数:
213
数据库连接1、在文件App.config内添加连接 1 2 3 4 5 8 9 12 2、添加 dll 引用3、获取数据库连接字符串string conStr = System.Configuration.ConfigurationManager.Co...
分类:
数据库 时间:
2014-07-16 13:41:47
阅读次数:
245