8 Simulation Of Computer Systems

Simulation and Modeling · Unit 8 · 9 hrs

Simulation of Computer Systems

Exam-focused notes for Simulation of Computer Systems (Simulation and Modeling, CSC328): what the TU syllabus asks and how it has actually been tested, with 6 solved past questions from this unit.

What this unit covers

  • Simulation Tools
  • Simulation Languages: GPSS
  • Case Studies of different types of Simulation Models and Construction of sample mathematical models

Simulation Languages

208210 marks

Describe the MARK and TABULATE block in GPSS. A coffee shop has a single barista serving customers. Customers arrive at an average rate of one every 3 minutes and the barista takes an average of 2.5 minutes to serve a customer. Create a simulation model and block diagram representing the coffee shop using GPSS blocks and simulate the system for 8 hours.[10]

--- The MARK block is used to record the current simulation clock time into a specified parameter of a transaction. This timestamp is later used to calculate the transit time (total time spent in the system). Syntax: - If operand A is specified: the current...

Full solved answer →
208110 marks

Consider that a machine tool in a manufacturing shop is turning out parts at the rate of two every 5 minutes. As they are finished, the parts go to an inspector, who takes 5±25 \pm 25±2 minutes to examine each one and reject about 15% of the parts. Now develop a block diagram and write the code for simulating the above problem using GPSS, and also explain the function of each block used in the block diagram in detail.[10]

- Machine produces parts at the rate of 2 every 5 minutes (i.e., one part every 2.5 minutes) - Inspector takes 5 ± 2 minutes to examine each part - Inspector rejects 15% of parts (accepts 85%) --- --- --- - This block creates transactions (parts) to enter t...

Full solved answer →
208010 marks

What is storage in GPSS? Describe the blocks associated to storage in GPSS. A machine tool in a manufacturing shop is turning out parts at the rate off one every 5 minutes. As they are finished the parts go on an inspector who takes 10±310 \pm 310±3 minutes to examine each one and rejects 1010%10 of the parts. Represent the system in GPSS using the concept of facility and run the simulation for 500 parts.[10]

--- - Part production rate: one part every $5$ minutes (deterministic inter-arrival time) - Inspection time: $10 \pm 3$ minutes (uniform distribution, range $7$ to $13$ minutes) - Rejection rate: $10\%$ of parts rejected - Simulation length: $500$ parts - M...

Full solved answer →
207910 marks

What is transaction in GPSS? Explain about facility in GPSS. Customers arrive at Joey Barbershop one every 15±3 minutes and it takes Joey 18±2 minutes to cut hair of a customer. Create a GPSS model with block diagram for the Barbershop using the concept of facility and run the simulation for 9 hours.[10]

Parameter Value ------ Inter-arrival time of customers $15 \pm 3$ minutes (uniform) Service time (haircut) $18 \pm 2$ minutes (uniform) Number of servers (barbers) 1 (single facility) Simulation duration 9 hours $= 9 \times 60 = 540$ minutes All required nu...

Full solved answer →
20785 marks

Workers come to a supply store at the rate of one every 6(+-) 2 minute. Their requisitions are processed by one of the two clerks who take 8 (+-) 2 minutes for each requisition. The requisitions are then passed to a single storekeeper who fills them one at a time, taking 6(+-)3 minutes for each. Draw GPSS Block diagram to simulate The above problem for 100 requisitions. [5]

Entity Details ----------------- Worker arrivals 1 every 6 ± 2 minutes Two clerks (Facilities) Process requisitions, 8 ± 2 minutes each Single storekeeper (Facility) Fills requisitions, 6 ± 3 minutes each Simulation termination After 100 requisitions comple...

Full solved answer →
20765 marks

Parts are being made at the rate of one every 10 minutes. They are of two types, A and B. And are mixed randomly with about 10% being type B. A separate inspector is assigned to examine each part. Inspection of part A takes 6 ± 2 minutes. Both inspector rejects 10% of parts they inspect. Draw GPSS block diagram to simulate the above problem for 100 parts. [5]

Parameter Value ------------------ Part generation rate 1 part every 10 minutes Type A parts 90% of all parts Type B parts 10% of all parts Inspection time (Type A) 6 ± 2 minutes (uniform: 4,5,6,7,8 min) Inspection time (Type B) Not specified, assumed simil...

Full solved answer →