码迷,mamicode.com
首页 >  
搜索关键字:process    ( 10875个结果
C#获取当前应用程序所在路径及环境变量
一、获取当前文件的路径string str1=Process.GetCurrentProcess().MainModule.FileName;//可获得当前执行的exe的文件名。 string str2=Environment.CurrentDirectory;//获取和设置当前目录(即该进程从中启...
分类:Windows程序   时间:2015-01-24 11:21:11    阅读次数:596
PROCESS_MEMORY_COUNTERS
typedef struct _PROCESS_MEMORY_COUNTERS { DWORD cb; DWORD PageFaultCount; SIZE_T PeakWorkingSetSize; //峰值内存使用 SIZE_T WorkingSetSize; ...
分类:其他好文   时间:2015-01-24 10:09:40    阅读次数:341
pthread_cond_wait 信号量丢失
服务器在使用pthread_cond_wait的时候遇到一个问题。具体描述如下一个主进程,给n个从线程发送计算请求,主进程会等待n个线程返回,在执行下一步从线程计算完毕后,最后一个线程会通知主线程。如下是示意性代码main_process(){ for(int i = 0; i sig...
分类:其他好文   时间:2015-01-23 21:20:29    阅读次数:192
erlang supervisor simple_one_for_one实例
http://www.cnblogs.com/little-ant/p/3196201.htmlsimple_one_for_one vs one_for_one:相同点:这种Restart Strategy和one_for_one基本相同(即当一个child process挂掉后,仅仅重启该chi...
分类:其他好文   时间:2015-01-23 13:08:28    阅读次数:244
python中的system函数与编码
在调用os.system执行命令时,发现system不能接受unicode的命令。那么命令中却又包含以unicode表示的中文等字符怎么办?——方法就是将unicode转化为utf8path = u'我的文件.txt'cmd = 'process'cmd += ' '+ path.encode('u...
分类:编程语言   时间:2015-01-22 17:07:26    阅读次数:210
linux 查看文件命令
catNAMEcat-concatenatefilesandprintonthestandardoutputSYNOPSIScat[OPTION][FILE]...DESCRIPTION-n,--numbernumberalloutputlines[root@bogon~]#cat-n/etc/inittab1#2#inittabThisfiledescribeshowtheINITprocessshouldsetup3#thesysteminacertainrun-level.4#5#Author:Miqu..
分类:系统相关   时间:2015-01-22 07:05:21    阅读次数:267
关于debian,redhat系列系统的相关配置,和常见错误解决
一:Debian1.使用apt-getinstall安装软件时有以下错误:W:GPGerror:\lable:NO_PUBKEY40976EAF437D05B解决:运行以下命令:apt-keyadv--keyserverkeyserver.ubuntu.com--recv-keys40976EAF437D05B52.或者出现的这样的问题:E:Sub-process/usr/bin/dpkgreturnedanerrorcode(1)解..
分类:其他好文   时间:2015-01-21 20:18:53    阅读次数:159
How do I determine if I'm being run under the debugger?
#include #include #include #include #include static bool AmIBeingDebugged(void) // Returns true if the current process is being debugged (either ...
分类:其他好文   时间:2015-01-21 19:32:54    阅读次数:156
c++开发过程中遇到的线程问(二)
MFC多线程编程的核心对象 Event、Mutex、Semaphore、  file、file-mapping、process、thread 前三个用于线程的同步化。   (1) 进程操作:CreateProcess(); TerminateProcess();ExitProcess(); 线程操作:CreateThread();ExitThread()主要是系统调用的;Termina...
分类:编程语言   时间:2015-01-21 16:39:03    阅读次数:193
Matlab中的数据预处理-归一化(mapminmax)与标准化(mapstd)
最近遇到数据预处理的一些问题,本来很简单的东西,但是却搞的烦烦的,痛定思痛,决定自己实现一下。 一、mapminmax Process matrices by mapping row minimum and maximum values to [-1 1] 意思是将矩阵的每一行处理成[-1,1]区间,此时对于模式识别或者其他统计学来说,数据应该是每一列是一个样本,每一行是多个样本的同一维,即...
分类:其他好文   时间:2015-01-21 13:27:01    阅读次数:416
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!