Using a pseudo random number generation function (e.g., rand() in C or other equivalent functions in other languages) that generates uniformly distributed random numbers, generate a workload for a system that is composed of 1000 processes. You can assume that processes arrive with an expected average arrival rate of 2 processes per second that follows a Poisson Distribution and the service time (i.e., requested duration on the CPU) for each process follows an Exponential Distribution with an expected average service time of 1 second. Your outcome would be printing out a list of tuples in the format of . You can assume that process IDs are assigned incrementally when processes arrive and that they start at 1. Based on your actual experiment outcome, also answer the following question: what are the actual average arrival rate and actual average service time that were generated?

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 19PE
icon
Related questions
Question

Using a pseudo random number generation function (e.g., rand() in C or other
equivalent functions in other languages) that generates uniformly distributed random
numbers, generate a workload for a system that is composed of 1000 processes. You
can assume that processes arrive with an expected average arrival rate of 2 processes
per second that follows a Poisson Distribution and the service time (i.e., requested
duration on the CPU) for each process follows an Exponential Distribution with an
expected average service time of 1 second. Your outcome would be printing out a list
of tuples in the format of <process ID, arrival time, requested service time>.
You can assume that process IDs are assigned incrementally when processes arrive
and that they start at 1.
Based on your actual experiment outcome, also answer the following question: what
are the actual average arrival rate and actual average service time that were generated?

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Dynamic Multithreading
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning