码迷,mamicode.com
首页 >  
搜索关键字:existing lock    ( 14514个结果
linux fcntl函数
fcntl 功能描述:根据文件描述来操作文件的特性。 #include #include int fcntl(int fd, int cmd); int fcntl(int fd, int cmd, long arg); int fcntl(int fd, int cmd, struct flock *lock); 描述 fctl针对(文件)描述提供控制。fd是被参数cmd操作...
分类:系统相关   时间:2014-10-20 19:35:46    阅读次数:357
Python 多线程之threading condition
Python threading Condition对象可以在某些事件触发或者达到特定的条件后才处理数据,Condition除了具有Lock对象的acquire方法和release方法外,还有wait方法、notify方法、notifyAll方法等用于条件处理。...
分类:编程语言   时间:2014-10-20 17:16:21    阅读次数:294
Combination Lock
时间限制:10000ms单点时限:1000ms内存限制:256MB描述Finally, you come to the interview room. You know that a Microsoft interviewer is in the room though the door is lo...
分类:其他好文   时间:2014-10-20 00:32:35    阅读次数:291
取消ubuntu的自动锁定
取消ubuntu的自动锁定 很多时候,离开电脑一回,但是回来的时候,电脑就锁住了,还得他妈的输入密码。怎么取消呢? windows系统设置屏幕保护即可,linux也是在屏幕保护里面设置。 执行:system - preferences - screemsaver 取消最下面lock选线的勾勾。 即可。...
分类:系统相关   时间:2014-10-19 21:25:59    阅读次数:320
利用条件信号量设计读写锁
1 一个资源同时可以有多个读写,但是只能有一个写锁2 用flag代表锁的状态,#define un_lock 0#define r_lock1 //上一把读锁加一个r_lock#define w_lock -1伪代码1 LOCK_Rpthread_lock(resource.mutex)while(...
分类:其他好文   时间:2014-10-19 12:51:23    阅读次数:150
7.Eclipse中创建新Maven项目
第一步:首先导入前面命令行建立的两个maven项目Hello和HelloFriend。        方法:选择file-->import-->Existing MAVEN PROJECTS选项选择对应项目路径导入即可   第二步:按顺序先后执行Hello和HelloFriend项目的的构建        方法:右击各自项目pom.xml文件,选择run a...
分类:系统相关   时间:2014-10-19 01:27:52    阅读次数:415
C++ Singleton + MultiThread
#include #include using namespace std; template class Singleton { public: static T *instance() { if (object == NULL) { mtx.lock(); if (object == NULL) object = new T; mtx.unlock(); }...
分类:编程语言   时间:2014-10-18 00:45:37    阅读次数:226
lock关键字
【lock关键字】 lock关键字可确保当一个线程位于代码的临界区时,另一个线程不会进入该临界区。 如果其他线程试图进入锁定的代码,则它将一直等待(即被阻止),直到该对象被释放。 lock关键字在块的开始处调用Enter,而在块的结尾处调用Exit。 通常,应避免锁定public类型【Mo...
分类:其他好文   时间:2014-10-17 18:29:51    阅读次数:120
mysql备份指定条件的sql脚本
mysqldump -uroot -proot DBName tabaleName -w" 条件=‘????‘? " ?--lock-all-tables > 目标路径 转自:http://blog.chinaunix.net/uid-27038861-id-3591736.html mysqldump备份还原和mysqldump导入导出语句大全...
分类:数据库   时间:2014-10-17 15:46:15    阅读次数:378
订单应用暂挂
You can apply hold on existing order by populating the order import interface with the following : OE_HEADERS_IFACE_ALL ORDER_SOURCE_ID ORIG_SYS_DOCUMENT_REF OPERATION_CODE => 'UPDATE' ORG_ID...
分类:其他好文   时间:2014-10-17 15:32:46    阅读次数:385
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!