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

📄 listener_p4.c

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 C
字号:
#include "p4.h"#include "p4_defs.h"#include "p4_globals.h"#include "p4_sys_funcs.h"/* *  listener_p4 * *  args: *    p4_debug_level *    max_connections *    listening_fd *    slave_fd */main(argc, argv)int argc;char **argv;{#if !defined(IPSC860) && !defined(CM5)    sprintf(whoami_p4, "list_%d", getpid());    if (argc != 5)	p4_error("listener_p4: invalid argc", argc);    p4_debug_level = atoi(argv[1]);    p4_dprintfl(70, "got: %s %s %s %s\n",		argv[1], argv[2], argv[3], argv[4]);    p4_global = (struct p4_global_data *)		p4_shmalloc(sizeof(struct p4_global_data));    p4_global->max_connections = atoi(argv[2]);    p4_global->num_in_proctable = 0;    p4_local = alloc_local_listener();    listener_info = alloc_listener_info();    listener_info->listening_fd = atoi(argv[3]);    listener_info->slave_fd = atoi(argv[4]);    listener();#endif}

⌨️ 快捷键说明

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