摘要: 1. Run a few randomly-generated problemswith just two jobs and two queues; compute the MLFQ execution trace for each. Make your life easier by limitin 阅读全文
posted @ 2020-06-26 15:31 世界を変える御宅族 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-25 12:48 世界を変える御宅族 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1. Compute the response time and turnaround time when running three jobs of length 200 with the SJF and FIFO schedulers. 没区别, 响应时间 周转时间 等待时间 1 0 200 0 阅读全文
posted @ 2020-06-23 23:26 世界を変える御宅族 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 测试上下文时间 Homework (Measurement) ASIDE: MEASUREMENT HOMEWORKS Measurement homeworks are small exercises where you write code to run on a real machine, i 阅读全文
posted @ 2020-06-23 13:14 世界を変える御宅族 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 1. Write a program that calls fork(). Before calling fork(), have the mainprocess access a variable (e.g., x) and set its value to something (e.g., 10 阅读全文
posted @ 2020-06-12 13:28 世界を変える御宅族 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 1 auto getter() { 2 return new vector<int>(); 3 } 4 auto setter(vector<int>* vec) { 5 int x; 6 while (cin >> x) 7 vec->push_back(x); 8 return vec; 9 } 阅读全文
posted @ 2020-05-25 11:51 世界を変える御宅族 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1 void func(forward_list<string>& flst, const string& s1, const string& s2) { 2 auto bb = flst.before_begin(); 3 bool flag = false; 4 for (auto j : fl 阅读全文
posted @ 2020-05-17 17:15 世界を変える御宅族 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1 1.指数分布 2 import matplotlib 3 import matplotlib.pyplot as plt 4 import numpy as np 5 matplotlib.use('Agg') 6 x = np.linspace(0, 2) 7 8 9 def func(lmd 阅读全文
posted @ 2020-05-15 17:41 世界を変える御宅族 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-10 23:20 世界を変える御宅族 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-07 08:14 世界を変える御宅族 阅读(185) 评论(0) 推荐(0) 编辑