pthread_join 函数是会阻塞主线程的,这会让很多java程序员不适应。因为在java中
start以后一个线程就执行执行了。主线程不会被阻塞。而在linux中 join是会阻塞的。那么如何使用join的时候
不阻塞主线程呢。我给出了一个解决方法。#include #include void...
分类:
编程语言 时间:
2014-05-24 05:59:40
阅读次数:
571
Error Domain=NSURLErrorDomain Code=-999 "The
operation couldn’t be completed. - (void)webView:(UIWebView *)webView
didFailLoadWithError:(NSError *)err...
分类:
Web程序 时间:
2014-05-24 03:39:02
阅读次数:
852
FQDN(Fully Qualified Domain
Name)完全合格域名/全称域名安装Ambari时,需要设置FQDN,每个节点都要设置,因为Ambari-agent向Ambari-server发送心跳时,第一次要携带FQDN作为自己的标记。而Ambari-server是通过FQDN识别每个A...
分类:
其他好文 时间:
2014-05-24 01:38:56
阅读次数:
728
samba有五种安全级别,它们分别是: share:不需要samba账户就可登陆samba服务器
user:需要添加samba账户才可以登陆samba服务器 server:由另外一台samba服务器来对用户进行身份验证。
domain:把samba服务器加入到NT域,由NT的域控制器来进行身份验证。...
分类:
系统相关 时间:
2014-05-24 00:19:01
阅读次数:
392
原文:http://grails.org/doc/2.3.x/ref/Domain%20Classes/list.htmllistPurposeLists
instances of the domain class.Examples// list everythingdef results = Bo...
分类:
数据库 时间:
2014-05-23 11:42:42
阅读次数:
661
当我们仅仅需要a+b 的时候,两个字符串链接任何方法的效率基本一样,都在0.0001毫秒内就可以完成。不过如果需要1万次,10000万次,就会发现string自身的join速度显著下降
package com.java.lang;
public class StringTest {
int MAX = 10000; //1万次累加
public String Buffer(){...
分类:
编程语言 时间:
2014-05-22 13:35:23
阅读次数:
299
Navier-Stokes equations1 Let $\omega$ be a domain
in $\bbR^3$, complement of a compact set $\mathcal{B}$. Consider the following
boundary value proble...
分类:
其他好文 时间:
2014-05-19 14:27:04
阅读次数:
498
写作驱动学习在软件开发领域有这样的几个名词BDD。测试驱动开发(Test-driven development)是极限编程中倡导的程序开发方法,以其倡导先写测试程序,然后编码实现其功能得名TDD。行为驱动开发(Behavior-Driven Development)是一种敏捷软件开发的技术,它鼓励软件项目中的开发者、QA和非技术人员或商业参与者之间的协作。DDD。领域驱动设计(Domain-Dri...
分类:
其他好文 时间:
2014-05-18 18:27:56
阅读次数:
348
例如:有表1,表2两张相,希望通过like进行关联查询
// mysql中使用concat连接字符串
select t1.id, t1.title, t2.keyword from t1 inner join t2 on t1.title like concat('%', t2.keyword, '%');
// oracle、postgres 使用||连接字符串,其它库使用...
分类:
其他好文 时间:
2014-05-18 15:57:36
阅读次数:
242
1. 写法轻松,更新效率高:
update table1
set field1=table2.field1,
field2=table2.field2
from table2
where table1.id=table2.id
2. 常规方式,种写法相当于一个 Left join, 以外面的where为更新条数,如果不加where就是所有记录
update table1
s...
分类:
数据库 时间:
2014-05-18 06:05:00
阅读次数:
294