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

📄 mosstat.h

📁 openmosix viewer图形界面工具。o penmosix viewer图形界面工具。o penmosix viewer图形界面工具。o penmosix viewer图形界面工具。
💻 H
字号:
#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <unistd.h>#include <dirent.h>#include <libmosix.h>#include <sys/stat.h>#include <signal.h>#define openmosixdir "/proc/hpc/nodes"#define mosixdir "/proc/mosix/nodes"#define LISTPORT 10050#define mpidfile "/var/run/mosstatd.pid"/*struct mosix_info {	unsigned long load;	unsigned int speed;	unsigned int ncpus;	unsigned int util;	unsigned int status;	unsigned int mem;	unsigned int rmem;	unsigned int tmem;#ifdef CONFIG_MOSIX_RESEARCH	unsigned int rio;   	unsigned int wio;   #endif // CONFIG_MOSIX_REASEARCH };*/struct node_info{    int mosix_number;    int real_node_number;    int openmosix;        int num_nodes; // yes i am sending this with every packet    struct mosix_info mosix_info;};//read delay is the default time to wait when re-reading the mosix statsint read_delay = 500;

⌨️ 快捷键说明

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