首页 > 其他分享 >CS 520: Introduction to Operating Systems

CS 520: Introduction to Operating Systems

时间:2024-10-15 19:23:15浏览次数:5  
标签:code Introduction simulation will report Operating time CS your

CS 520: Introduction to Operating Systems Homework Assignment #3 This assignment is somewhat open-ended—start working on it as soon as you can!

A reminder: You may work in groups; however, you may not show anyone your

code or copy of any part of anyone else’s code or report.

Those who submit isomorphic programs or same reports, get 0 points each as a

minimum. (For the rest of the penalties please check the Syllabus.)  recommend that you write everything in small—no longer than one-page-long—methods and test each method separately. Start by testing your pseudo-random

variable package and check the distributions to ensure that everything works.

Include this test in a separate method. Then prepare and test the event data structure. You must keep events in a heap—this

is exactly why this structure was developed. The good news is that you may use the

Java library. After that, writing and debugging the rest of the program will be straight-forward. I

recommend that you finish the program in the first week and spend the second week on experimenting and writing the report.

As a minimum, a program must be written and a report prepared with the specificquestions answered, but there is much room for using your creativity—please use it! The

most important thing that you will have learned from this assignment is the discreet

simulation technique, which you will apply (by re-using most of the code you develop todeal with this particular problem) later.Write the bus simulation, as explained in the class and described in the notes. Feel free tolook on the web for and then re-use any suitable code for the random number generator orfor linked list algorithms. With that, 1) don’t forget to include a reference to 代 写CS 520: Introduction to Operating Systems  the sourceof any code you re-use and 3) remember to test all re-used code as you are the only oneresponsible for its performance..The purpose of the simulation is to observe the behavior of the system, and answer thefollowing questions:Does the distance between the adjacent buses remain the same? If not, what should be done to ensure that it be the same?

  1. What is the average size of a waiting queue at each stop (and what are its

maximum and minimum)? (You may provide this information on an hourly [simulation time] base.)2Plot the positions of buses as a function of time (you will need to generate periodicsnapshots of the system for that). Feel free to change parameters; then observe anddocument the results.What you hand in must include

  1. Your working Java program (it must be well-commented) as well as all requiredinput files in the txt format.
  1. A README txt file explaining what you are submitting.
  2. Your report, in the PDF format, including plots, observations, and—especially—

our recommendations for change in the scheduling policies. Needless, to say youwill need runs that demonstrate that your recommendations solve the problems

you observe. Remember that preparing a report is an essential part of this assignment; this is not merely a programming exercise. The program must be working (or the assignment will get a grade of 0), but the quality of your report will determine your grade. eel free to change the simulation parameters. My initial suggestion is that there are

  • 15 bus stops
  • 5 buses
  • The time to drive between any two contiguous stops is 5 minutes
  • The passenger’s mean arrival rate at each stop is 5 persons/min
  • The boarding time is 2 seconds for each passenger
  • The total simulation time is 8 hours.Make sure you start this project as early as possible so that you have enough time to run

experiments and prepare a comprehensive report. (100 points)

标签:code,Introduction,simulation,will,report,Operating,time,CS,your
From: https://www.cnblogs.com/comp9313/p/18467146

相关文章

  • Elasticsearch相关概念对比MySQL
    Elasticsearch和MySQL是两种不同的数据管理系统,各自有其独特的概念和应用场景。以下是它们在几个关键概念上的对比:o数据模型Elasticsearch:。文档(Document):基本的数据单元,存储为JSON格式。。索引(Index):类似于数据库,包含多个文档。。类型(Type):在7.x版本后已被弃用,之前用于逻......
  • 大学生HTML期末大作业——HTML+CSS+JavaScript购物商城
    HTML+CSS+JS【购物商场】网页设计期末课程大作业web前端开发技术web课程设计网页规划与设计......
  • 在K8S中,CSI模型有哪些?
    在Kubernetes(K8s)中,ContainerStorageInterface(CSI)模型是用来集成外部存储系统的标准化方法。CSI模型的主要组成部分包括:CSIDriver(驱动程序):CSIDriver是由存储提供商编写的,它实现了CSI规范中定义的API接口。每个存储提供商都需要为其产品提供一个或多个CSIDrivers,以......
  • css opacity 淡入淡出效果2
    <!DOCTYPEhtml><html><scripttype="text/javascript"src="style/jquery-3.7.0.min.js?v=0.002?v=1.0.01"></script><head><style>.fade{position:absolute;z-index:-......
  • k8s安装metrics
    有的集群安装完之后没有metrics组件,无法使用top命令查看node和pod的资源利用率下载MetricsServer配置文件wgethttps://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml-Ometrics.yaml修改配置文件,修改以下内容......spec:......
  • 【油猴脚本】00027 案例 Tampermonkey油猴脚本, 仅用于学习,不要乱搞。添加标题为网页数
    前言:哈喽,大家好,今天给大家分享一篇文章!并提供具体代码帮助大家深入理解,彻底掌握!创作不易,如果能帮助到大家或者给大家一些灵感和启发,欢迎收藏+关注哦......
  • css盒子的定位(相对定位)
    如何给定位盒子    想给盒子定位,必须提供三个要素,锚点、方向和距离。而盒子的相对定位,就是以元素本身的位置作为锚点。盒子定位的属性名和属性值        position:relative    relative值代表的定位是以元素本身的位置作为锚点,元素本体的位置并......
  • csp-s模拟11
    赛时rank11,T1100pts,T217pts,T30pts,T40pts,T510pts这场模拟赛就是糖,告诉我题目难度不按升序排列就是除了T1我都不会呗。玩水(water)签成了,还签了个首切?定义一个形如\(\begin{matrix}A*\\*\\end{matrix}\)的为一个角,角的位置为A的位置。有解的时候就是两个角相邻或......
  • Stanford CS149 -- Assignment 3: A Simple CUDA Renderer
    作业描述及代码参见:CS149-asst3实验环境:WSL2;GeForceMX350;Cuda12.6第一部分:CUDA热身练习1:SAXPY实验结果:相比基于CPU的实现,性能明显下降。这是由于SAXPY属于I/O密集型任务,计算量较小,主要的时间耗费在数据的转移。第二部分:CUDA热身练习2:并行前缀和第三部分:简单......
  • Stanford CS149 -- Assignment 4: NanoGPT149
    作业描述及代码参见:cs149gptWarm-Up:访问张量张量/数组都是按行存储的,四维数组可以看作元素为三维数组的数组,元素大小即为三维数组内元素总数,以此类推。第1部分:简单(但不太高效)的注意力机制实现主要实现两个矩阵乘法和一个softmax运算。第2部分:块矩阵乘法和UnfusedSof......