通常死循环会这样写
for(;;)
无限循环
理论上讲,任何一个循环语句都可以达到死循环的目的,比如 (代码取自udk2014)
/**
Executes an infinite loop.
Forces the CPU to execute an infinite loop. A debugger may be used to skip
past the loop a...
分类:
其他好文 时间:
2015-01-01 19:50:19
阅读次数:
294
AsyncTask的实现原理就是封装了的线程池,详细见AsyncTask实现原理。在1.5中初始引入的时候, AsyncTask 运行( AsyncTask.execute() )起来是顺序的,当同一时候运行多个 AsyncTask的时候,他们会依照顺序一个一个运行。前面一个运行完才会运行后面一个。...
分类:
其他好文 时间:
2015-01-01 12:27:30
阅读次数:
140
废话不多说,直接上源码 最后网页源码在result中。public void btn(View view) { new myWorker().execute("这里是网址"); } //异步操作,防止UI线程阻塞。 private class myWorker ...
分类:
移动开发 时间:
2015-01-01 06:39:16
阅读次数:
161
1、问题描述使用mysqldump备份,备份命令:[root@gfsunny105opt]#mysqldump-uroot-p--skip-quote-names--databasestest--tablest>test1.sqlmysqldump:Couldn‘texecute‘SETOPTIONSQL_QUOTE_SHOW_CREATE=1‘:YouhaveanerrorinyourSQLsyntax;checkthemanualthatcorrespondstoyou..
分类:
数据库 时间:
2014-12-31 16:33:18
阅读次数:
831
1.r(Read,读取):对文件而言,具有读取文件内容的权限;对目录来说,
具有浏览目 录的权限。
2.w(Write,写入):对文件而言,具有新增、修改文件内容的权限;对目
录来说,具有删除、移动目录内文件的权限。
3.x(eXecute,执行):对文件而言,具有执行文件的权限;对目录了来说
该用户具有进入目录的权限。...
分类:
系统相关 时间:
2014-12-31 13:08:00
阅读次数:
633
这两天,在写一个python小程序的时候突然大发奇想了一下,觉得可以测试一下pymysql包里面的execute()与executemany()的速度,executemany()实质上就是将数组中的元素一个个取出来然后一条条的执行,可以查看executemany()的源码为:
def executemany(self, query, args):
"""Run several...
分类:
数据库 时间:
2014-12-30 20:47:07
阅读次数:
908
创建存储过程:语法:create [or replace] PROCEDURE 过程名(参数列表)AS PLSQL子程序体;调用 存储过程的方式 两种1、execute(exec) ------exec 函数名()2、begin 函数名() end -------begin 函数名()end函数(....
分类:
数据库 时间:
2014-12-29 11:51:45
阅读次数:
327
Gradle has a very powerful incremental build feature. This means Gradle will not execute a task unless it is necessary. We can help Gradle and configu...
分类:
其他好文 时间:
2014-12-27 21:45:24
阅读次数:
201
Normally Gradle looks for a build script file with the name build.gradle in the current directory to execute a build. But we can easily use a differen...
分类:
其他好文 时间:
2014-12-27 21:36:08
阅读次数:
189
With Gradle we can execute Java applications using the JavaExec task or the javaexec() method. If we want to run Java code from an external dependency...
分类:
移动开发 时间:
2014-12-27 20:14:55
阅读次数:
165