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

📄 exception.h

📁 LINUX 下NACHOS 系统的页面调度算法的实现
💻 H
字号:
// exception.h            -*- C++ -*-// No files besides exception.cc ought to #include this file!#include "thread.h"#include "console.h"#include "synch.h" #define MaxNoThreads 20int numThreadsExec = 0;int joinInvoked = 0; struct joinThreadList{  Thread *threadExecuting[MaxNoThreads];  Condition *completeThread[MaxNoThreads];  Lock *completeLock[MaxNoThreads];} joinThreadList; int statusReturned[MaxNoThreads];int threadComplete[MaxNoThreads];static int threadsIn = 1;static Console *console;static Semaphore *readAvail;static Semaphore *writeDone;static Lock *writeLock;static void ReadAvail(int arg){  if (arg) {} // ignore arg, silence warning.  readAvail->V();}static void WriteDone(int arg){  if (arg) {} // ignore arg, silence warning.  writeDone->V();}

⌨️ 快捷键说明

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