博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年9月5日

摘要: 设在内存中有P1、P2、P3三道程序,并按照P1、P2、P3的优先次序运行,其内部计算和I/O操作时间由下图给出: P1:计算 60ms----------------I/O 80ms-----------------计算 20ms P2:计算 120ms--------------I/O 40ms-----------------计算 40ms P3:计算 40ms----------------I/O 80ms-----------------计算 40ms 调度程序的执行时间忽略不计,完成这三道程序比单道运行节省的时间是(C ) A、80ms B、120ms C、160ms D、200m 阅读全文

posted @ 2011-09-05 17:00 李大嘴 阅读(761) 评论(0) 推荐(0) 编辑

摘要: #include <iostream>using namespace std;typedef struct Node{ int value; Node *next;}Node;Node* CreateSingleLinkedList(int array[], int length){ Node *p = new Node; Node *head = NULL; Node *t = p; for (int i=0; i<length; i++) { Node *t = new Node; t->value = array[i]... 阅读全文

posted @ 2011-09-05 16:40 李大嘴 阅读(307) 评论(0) 推荐(0) 编辑