码迷,mamicode.com
首页 >  
搜索关键字:rt thread    ( 14779个结果)
mongodb batchInsert
看到《MongoDB 权威指南》第二版P30提到了一个batchInset的插入方法,对于一次性插入大量数据时可以提高速递。按照书上的列子,却提示错误:本书是基于MongoDB V2.4.0进行讲解,而我的测试环境是V2.4.9。此帖中http://f.dataguru.cn/thread-2521...
分类:数据库   时间:2014-09-22 10:57:02    阅读次数:1122
Java中的线程实现
线程实现有两种方法:1.写一个类来继承Thread类,然后复写run()方法。public class HelloThread extends Thread { public void run() { System.out.println("Hello from a threa...
分类:编程语言   时间:2014-09-22 09:19:52    阅读次数:219
AbstractQueuedSynchronizer 应用
一。ReentrantLockpublic boolean tryLock()Acquires the lock only if it is not held by another thread at the time of invocation.Acquires the lock if it is...
分类:其他好文   时间:2014-09-22 03:46:51    阅读次数:246
android分析之消息处理
前序:每个APP对应一个进程,该进程内有一个ActivityThread的线程,称为主线程(即UI主线程),此外,还有其他线程,这个再论。android的消息系统分析。每个Thread只对应一个Looper每个Looper只对应一个MessageQueue每个MessageQueue中有N个Mess...
分类:移动开发   时间:2014-09-22 01:52:21    阅读次数:309
tryLock & lock 区别
void lock()Acquires the lock.If the lock is not available then the current thread becomes disabled for thread scheduling purposes and lies dormant unt...
分类:其他好文   时间:2014-09-22 01:23:41    阅读次数:417
java中runnable的用法解析
1、类结构,首先有两个类,一个是测试类Main,一个是线程类MyThread。 2、MyThread package com.test.thread; import java.lang.management.ThreadInfo; public class MyThread implements Runnable { String name=null; MyThread(String...
分类:编程语言   时间:2014-09-21 22:47:51    阅读次数:302
PHP5.3中关于VC9和VC6以及Thread Safe和Non Thread Safe版本选择的问题
转自:http://www.htmer.com/article/716.htm最近在PHP官网上看到又有新版的PHP下载了,于是上去找找For Windows的版本,可是一看确傻眼了,一共给了四个版本,VC9 x86 Non Thread Safe、VC9 x86 Thread Safe、VC6 x...
分类:Web程序   时间:2014-09-21 21:28:31    阅读次数:218
批量 kill mysql 中运行时间长的sql
以下内容来自mysql手册:13.5.5.3. KILL语法KILL [CONNECTION | QUERY] thread_id每个与mysqld的连接都在一个独立的线程里运行,您可以使用SHOW PROCESSLIST语句查看哪些线程正在运行,并使用KILL thread_id语句终止一个线程。...
分类:数据库   时间:2014-09-21 14:16:30    阅读次数:319
Handler和HandlerThread
1.什么是Handler?SDK中关于Handler的说明例如以下:A Handler allows you to sendand process Messageand Runnable objects associated with a thread'sMessageQueue.Each Hand...
分类:其他好文   时间:2014-09-21 12:57:40    阅读次数:273
hdu 5023 A Corrupt Mayor's Performance Art (线段树)
把求和操作改为或操作,就可以了。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define lson l,m,rt>1;27 build(lson);28 build(rson);29 up(r...
分类:其他好文   时间:2014-09-21 11:27:10    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!