A system consists of 1 CPU, 1 Disk, and 1 Network Interface. A web server running on this system consists of a process that waits for an HTTP request. Once the request is received, the process services it by fetching the requested file from disk (an I/O operation) and then by sending the file content to the client. Assume that serving a request consists of the following phases:
i. Process uses the CPU for 2 msec (parse request) // CPU is busy here
ii. Process blocks for the Disk for 9 msec (fetch the file) // Disk is busy here
iii. Process uses the CPU for 3 msec (prepare for network I/O) // CPU is busy here
iv. Process blocks for the network for 5 msec (send file to the client) // Network is busy here
v. Process uses the CPU for 1 msec (cleanup) // CPU is busy here
In the above, when a resource is "busy" serving a process, it means that the resource cannot be used by any other process; any other process that needs that resource must block until the resource is available. Assuming that there can only be one process in the system (i.e., a batch processing system, with a multiprogramming level MPL = 1), and assuming that there is always requests for the server to service (i.e., once the process is done with a request, it can immediately start on the next) answer the following questions:
(1) What are the utilizations of the CPU, disk, and network?
(2) What is the capacity (in terms of requests per second) of the web server when MPL=1?
With one process in the system, when a resource is busy, all other resources will be idle. Thus, to improve resource utilization, you decided to use N=2 processes to serve more than one request at a time. In other words, you decided to go for MPL = 2 (i.e., the web server has two processes, each of which serving one of the requests coming into the system). Again, assuming that there are plenty of requests for each process to service, and that the system has been running for a long time (i.e., it reached some steady state) answer the following questions:
(3) For MPL=2 what is the utilization of the CPU, disk, and network?
(4) What is the capacity of the web server when MPL=2
(5) What is the smallest MPL value that will result in one of the resources becoming the bottleneck?
(6) What is the maximum achievable capacity of the web server?
A system consists of 1 CPU, 1 Disk, and 1 Network Interface. A web server running...
1 Jobs arrive to a file server consisting of a CPU and two disks (disk 1 and disk 2). With probability 13/20, a job goes from CPU to disk ĺ, and with probability 6/20, a job goes from CPU to disk 2. With probability 1/20, a job is finished after its CPU operation and is immediately replaced by another job. There are always 3 jobs in the system. The mean time to complete the CPU operation is .039 second The...
1. Consider a demand-paging system with the following time-measured utilizations: CPU utilization 20% Paging disk 5% Other I/O devices 97% Indicate which will improve system utilization and explain your answer. a. Install a faster CPU . b. Install a bigger paging disk. c. Increase the degree of multiprogramming. d. Decrease the degree of multiprogramming. e. Install more main memory. f. Install a faster hard disk or multiple controllers with multiple hard disks. g. Add prepaging to the page-fetch algorithms....
Windows server 2012 R2 is a current network operating system serving as a platform for resources including applications and utilities as well as file and print services. 1. compare a private cloud to a public cloud. What is VDI? What does Windows Server 2012/R2 offer for a private cloud?
Figure 1 LAN Subnet: 192.168.40.0124 LAN Switch Internet External Firewall Internal Firewall DMZ Subnet: 192.168.10.0/24 LAN devices Web Server running on port 80 IDS (Snort VM) Remote Access Server (Nginx VM) (OpenVPN) Overview Medium to large organisations typically consist of services that are accessed/consumed from external parties for various purposes. As such, a DMZ is a suitable solution to segregate such services from internal networkis). The network diagram provided (Figure 1) illustrates the IT environment of a medium organisation, which...
5. Completion Complete each statement. 1. A(n) ____________________ server is a dedicated server that manages network traffic. 2. A(n) ____________________ network is a network topology that consists of a single central cable, to which all computers and other devices connect. 3. Today, ____________________ is the most popular LAN technology because it is relatively inexpensive and easy to install and maintain. 4. The ____________________ standard specifies that computers and devices on the network share or pass a special signal, called a...
You shall write a very basic web server in Javascript that will run via nodejs. Your project shall include the following line: var paul = require('/homes/paul/HTML/CS316/p3_req.js'); Your project will accept HTTP requests via URLs in the following format: /[a-zA-Z0-9_]*.cgi Here are the steps you must perform for .cgi URLs: 1) call http .createserver(myprocess) my process() is a function you will write to process requests from the user via their browser 2) create a mylisten() function that takes the following parameters:...
Description In this homework, you are asked to implement a multithreaded program that will allow us to measure the performance (i.e, CPU utilization, Throughput, Turnaround time, and Waiting time in Ready Queue) of the four basic CPU scheduling algorithms (namely, FIFO, SJE PR, and RR). Your program will be emulating/simulating the processes whose priority, sequence of CPU burst time(ms) and I'O burst time(ms) will be given in an input file. Assume that all scheduling algorithms except RR will be non-preemptive,...
Q.6. Consider a preemptive operating system where processes have priorities and a running process gets preempted (i.e., forced to leave the CPU) as soon as a higher priority process is ready to run. The life cycle of a process, other than the very first process, begins with a "spawn" by another process and ends with either a regular "exit" by the process or a "terminate (process_id)" command by another process of equal or higher priority. COMP 346 – Fall 2019...
4. A multi-programmed operating system running on a single CPU assigns time slices of CPU time to the virtual machines that run the individual programs. Each virtual machine is given access to the CPU for a certain time (the time slice), during which it will continue to execute its program. The next time slice then goes to another virtual machine, and so on. a. Assume that each time slice is one millisecond (1/1000 of a second) long. The computer on...
1. A flexible manufacturing cell consists of two machining workstations plus a load/unload station. The load/unload station is station 1 with one server (human worker). Station 2 consists of one CNC machining center. Station 3 has one CNC drill press. The three stations are connected by a part-handling system that has one work carrier. The mean transport time is 2.0 min. The FMC produces three parts, A, B, and C. The part mix fractions and process routings for the three...