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

📄 simlibdefs.h

📁 离散事件系统仿真程序CPU_scheduler说明: 1.仿真功能与要求: 1.1 单CPU系统
💻 H
字号:
/* This is simlibdefs.h. */

#ifndef simlibdefs
#define simlibdefs

/* Define limits. */

#define MAX_LIST    25      /* Max number of lists. */
#define MAX_ATTR    10      /* Max number of attributes. */
#define MAX_SVAR    25      /* Max number of sampst variables. */
#define TIM_VAR     25      /* Max number of timest variables. */
#define MAX_TVAR    50      /* Max number of timest variables + lists. */
#define EPSILON      0.001  /* Used in event_cancel. */

/* Define array sizes. */

#define LIST_SIZE   26      /* MAX_LIST + 1. */
#define ATTR_SIZE   11      /* MAX_ATTR + 1. */
#define SVAR_SIZE   26      /* MAX_SVAR + 1. */
#define TVAR_SIZE   51      /* MAX_TVAR + 1. */

/* Define options for list_file and list_remove. */

#define FIRST        1      /* Insert at (remove from) head of list. */
#define LAST         2      /* Insert at (remove from) end of list. */
#define INCREASING   3      /* Insert in increasing order. */
#define DECREASING   4      /* Insert in decreasing order. */

/* Define some other values. */

#define LIST_EVENT  25      /* Event list number. */
#define INFINITY     1.E30  /* Not really infinity, but a very large number. */

/* Pre-define attribute numbers of transfer for event list. */

#define EVENT_TIME   1      /* Attribute 1 in event list is event time. */
#define EVENT_TYPE   2      /* Attribute 2 in event list is event type. */

#endif

⌨️ 快捷键说明

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