⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpdstat.cpp

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 CPP
字号:
#include "mpdimpl.h"void statMPD(char *pszParam, char *pszStr, int length){    if (length < 1)	return;    *pszStr = '\0';    if (stricmp(pszParam, "ps") == 0)    {	statProcessList(pszStr, length);    }    else if (stricmp(pszParam, "launch") == 0)    {	statLaunchList(pszStr, length);    }    else if (stricmp(pszParam, "config") == 0)    {	statConfig(pszStr, length);    }    else if (stricmp(pszParam, "context") == 0)    {	statContext(pszStr, length);    }    else if (stricmp(pszParam, "tmp") == 0)    {	statTmp(pszStr, length);    }    else if (stricmp(pszParam, "barrier") == 0)    {	statBarrier(pszStr, length);    }    else if (stricmp(pszParam, "forwarders") == 0)    {	statForwarders(pszStr, length);    }    else if (stricmp(pszParam, "cached") == 0)    {	statCachedUsers(pszStr, length);    }    else if ((stricmp(pszParam, "help") == 0) || (stricmp(pszParam, "?") == 0))    {	_snprintf(pszStr, length, 	    " ps ......... running processes\n"	    " launch ..... launch structures\n"	    " config ..... mpd registry settings\n"	    " context .... open contexts\n"	    " tmp ........ temporary files\n"	    " barrier .... outstanding barriers\n"	    " forwarders . forwarders on this node\n"	    " cached ..... cached users\n"	    );    }    else    {	strcpy(pszStr, "<unsupported>\n");	return;    }    if (strlen(pszStr) == 0)    {	strcpy(pszStr, "<none>\n");    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -