今天给大家讲解下go语言开多进程。package mainimport (
"fmt"
"time"
)var c chan intfunc main() {
c = make(chan int)
go waiting("coffee", 1)
go waiting("tea", 2)
fmt.Println("I,am waiting")
/...
分类:
编程语言 时间:
2015-03-20 14:32:34
阅读次数:
320
1.显示广播dumpsys activity2.调起Activityam start - n 包名/.类名3.发广播adb shell am broadcast 后面的参数有:[-a ][-d ][-t ] [-c [-c ] ...] [-e|--es ...] [--ez ...] [...
分类:
其他好文 时间:
2015-03-20 12:53:11
阅读次数:
126
我们先看下面的程序:#include
int main()
{
int child;
char *args[] = {"/bin/echo", "Hello", "World!", NULL};
if(!(child = fork()))
{
/* child */
execve("/bin/echo", args, NULL});
printf("I am back,...
分类:
系统相关 时间:
2015-03-20 09:20:14
阅读次数:
166
Volley 源码解析1. 功能介绍1.1. VolleyVolley 是 Google 推出的 Android 异步网络请求框架和图片加载框架。在 Google I/O 2013 大会上发布。名字由来:a burst or emission of many things or a large am...
分类:
其他好文 时间:
2015-03-19 18:11:08
阅读次数:
140
Operator?oper //操作者,用户。
AccessRight?ar //用户-数据项-操作权限映射表。
AccessRightTake?art //数据项。
AccessMenu?am //用户-目录项映射表。
AccessMenuTake?amt //目录项。
Acce...
分类:
其他好文 时间:
2015-03-19 13:26:26
阅读次数:
144
I am a fledging of Java and this is my first time to writting such blog.At the same time,I wanna to improve mydeclining English.So I diceide to write ...
分类:
编程语言 时间:
2015-03-18 17:21:10
阅读次数:
147
描述阿申准备报名参加GT考试,准考证号为N位数X1X2….Xn(0<=Xi<=9),他不希望准考证号上出现不吉利的数字。他的不吉利数学A1A2…Am(0<=Ai<=9)有M位,不出现是指X1X2…Xn中没有恰好一段等于A1A2…Am. A1和X1可以为0分析
f[i][j] 表示前i个数字里匹配到了j位
开始想到一个很不完善的方程, f[i][j] = f[i-1][j-1], f[i][0] =...
分类:
其他好文 时间:
2015-03-18 14:06:39
阅读次数:
410
一、NMAKE和Makefile 1.1、NMAKE - 命令解释器,根据Makefile文件中定义的脚本,完成项目的编译等操作。 1.2、Makefile - 定义编译/链接等脚本语言。 1.3、Makefile文件的使用 1.3.1基本语法规则 window.exe:wi...
分类:
其他好文 时间:
2015-03-18 11:53:44
阅读次数:
141
svn转型到git过程中,一直有使用git svn场景,针对一些遇到的问题和常用功能总结一下:1.git svn导出:
git svn clone “svn路径”2.git svn提交:
git add .(或者对应的X文件)
git commit -m “log信息”
前两部可以合并成 git commit -am “log信息”
git svn dcommit(最后一步提交到了svn上...
分类:
其他好文 时间:
2015-03-18 10:39:40
阅读次数:
178
Disclaimer: Here is a complete answer taking the last version of OS X (10.9 AKA Mavericks) into account. I am aware that everything I compiled in this answer is already present in the page, but having...
分类:
系统相关 时间:
2015-03-17 21:53:23
阅读次数:
278