Question: You work as a systems engineer team for Universal Studios, which is currently in the process of designing a Jurassic Park ride at the theme



You work as a systems engineer team for Universal Studios, which is currently in the process of designing a Jurassic Park ride at the theme park. You are in charge of designing the waiting area, God-forsaken land of ropes, where people going around in circles. Here are specifications: The ride consists of putting MAXPERCAR or less people on a Ford Explorer and sending through a small scale version of Jurassic Park where the dinosaurs run loosely and attack tourists. The process is semi-continuous, as an empty Explorer will arrive at the embarkation periodically. You have been told by industrial engineers that it takes 7 seconds to load the people into the car and to send them on their way and another 53 seconds to complete the ride. . But not every car is completely full, as the number of people waiting on line may be less than MAXPERCAR. The en-queuing rate is variable, as people get in line at various rates during the day. You can assume all people arrival at beginning of every minute. The mean value of arrival rate varies as follows: 09:00:00--10:59:59, meanArrival 25 persons per minute o o 11:00:00-13:59:59, meanArriva 45 persons per minute o 14:00:00--15:59:59, meanArrival 35 persons per minute o 16:00:00--18:59:59, meanArrival 25 persons per minute At the beginning of every minute, we can decide the number people who will arrive in this minute by calling Random.poisson(meanArrival), provided in file random437.h Assume there is a limit on the number of people kept in the waiting area, MAXWAITPEOPLE (800). If more people come, they will be advised to come back later since the waiting line is too long You are going to design the waiting area where the lines will snake back and forth endlessly between roped-off guideways, before spilling over into the street. Your task is to simulate the waiting lines on a computer with multiple concurrent threads to observe the dynamics of the lines at different times during the day. There are total CARNUM Explorers, you need to create a new thread for each of them You need a thread to take care of incoming people and decide that either accept them into the waiting line or reject some or all of them away. It will write a status line into a output file: . You work as a systems engineer team for Universal Studios, which is currently in the process of designing a Jurassic Park ride at the theme park. You are in charge of designing the waiting area, God-forsaken land of ropes, where people going around in circles. Here are specifications: The ride consists of putting MAXPERCAR or less people on a Ford Explorer and sending through a small scale version of Jurassic Park where the dinosaurs run loosely and attack tourists. The process is semi-continuous, as an empty Explorer will arrive at the embarkation periodically. You have been told by industrial engineers that it takes 7 seconds to load the people into the car and to send them on their way and another 53 seconds to complete the ride. . But not every car is completely full, as the number of people waiting on line may be less than MAXPERCAR. The en-queuing rate is variable, as people get in line at various rates during the day. You can assume all people arrival at beginning of every minute. The mean value of arrival rate varies as follows: 09:00:00--10:59:59, meanArrival 25 persons per minute o o 11:00:00-13:59:59, meanArriva 45 persons per minute o 14:00:00--15:59:59, meanArrival 35 persons per minute o 16:00:00--18:59:59, meanArrival 25 persons per minute At the beginning of every minute, we can decide the number people who will arrive in this minute by calling Random.poisson(meanArrival), provided in file random437.h Assume there is a limit on the number of people kept in the waiting area, MAXWAITPEOPLE (800). If more people come, they will be advised to come back later since the waiting line is too long You are going to design the waiting area where the lines will snake back and forth endlessly between roped-off guideways, before spilling over into the street. Your task is to simulate the waiting lines on a computer with multiple concurrent threads to observe the dynamics of the lines at different times during the day. There are total CARNUM Explorers, you need to create a new thread for each of them You need a thread to take care of incoming people and decide that either accept them into the waiting line or reject some or all of them away. It will write a status line into a output file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
