偶然发现一个BUG,有一个函数是这样写的:void WaitProcExit(DWORD dwPid){ HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, 0, dwPid); if ( NULL == hProcess ) { ...
分类:
系统相关 时间:
2015-07-08 16:13:11
阅读次数:
146
It has become common practice to perform tasks during an ASP.NET applications start up process. These tasks may include registering routes, configurin...
分类:
移动开发 时间:
2015-07-08 16:10:03
阅读次数:
146
WCF - IIS HostingHosting a WCF service in IIS (Internet Information Services) is a step-by-step process. IIS Hosting is illustrated below in detail wi...
分类:
其他好文 时间:
2015-07-08 14:35:16
阅读次数:
122
So, while developing a web application, there comes a time when we need to process some of the tasks in the background, perhaps asynchronously. For example, your user would upload photos and the app w...
分类:
其他好文 时间:
2015-07-08 13:02:16
阅读次数:
134
declare@xmlDocxmldeclare@PrintValuenvarchar(max)select@xmlDoc=DESCRIPTIONfromdbo.WF_PERSIST_DESCRIPTORwhere[PROCESS_ID]='1e9e9059-50ea-adac-4660-918cd...
分类:
数据库 时间:
2015-07-08 12:52:26
阅读次数:
177
Android-Handle一 什么是Handle
Handle:
A Handler allows you to send and process Message and Runnable objects associated with a thread’s MessageQueue
一个Handle是允许你去和一个线程的消息队列去发送和接收消息的对象你可以构造handle对象来与Loope...
分类:
移动开发 时间:
2015-07-07 19:38:20
阅读次数:
751
fork 使用 fork 方式运行 script 时, 就是让 shell(parent process) 产生一个 child process 去执行该 script, 当 child process 结束后, 会返回 parent process,但 parent process 的环境是不会因...
分类:
系统相关 时间:
2015-07-07 16:28:18
阅读次数:
131
Process localProcess = Runtime.getRuntime().exec("su");
这条代码获得root权限
OutputStream localOutputStream = localProcess.getOutputStream();
DataOutputStream localDataOutputStream = new DataOutput...
分类:
移动开发 时间:
2015-07-07 14:48:48
阅读次数:
141
1 #-*- coding:utf-8 -*- 2 from multiprocessing import Process,Queue 3 import os,time,random 4 def write(q): 5 for value in ['A','B','C']: 6 ...
分类:
编程语言 时间:
2015-07-07 10:58:01
阅读次数:
169
Well, since theheadpointer may also been modified, we create anew_headthat points to it to facilitate the swapping process.For the example list1 -> 2 ...
分类:
其他好文 时间:
2015-07-06 15:49:25
阅读次数:
109