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

📄 rpc.c

📁 一个用在mips体系结构中的操作系统
💻 C
字号:
/* * Copyright (C) 1996-1998 by the Board of Trustees *    of Leland Stanford Junior University. *  * This file is part of the SimOS distribution.  * See LICENSE file for terms of the license.  * *//* * rpc.c -- program to run on top of SIMOS to test the hive rpc subsystem * Usage: rpc is_server iterations * */#define HIVE#include "simosapps.h"#include "stdio.h"#include "sys/sysmp.h"int main(int argc, char** argv){   int is_server;   int niter;   int err;   if (argc < 3) {      printf("usage: rpc is_server niter\n");      return 1;   }      is_server = atoi(argv[1]);   niter = atoi(argv[2]);   err = sysmp(MP_HIVE, MPHI_RPCTEST, is_server, niter);   if (err) {      perror("starting test");   }   return 0;}

⌨️ 快捷键说明

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