CS457 - System Performance Evaluation - Winter 2008


Questions and Comments

  1. Midterm: Q5e
  2. Assignment 3

Lecture 21 - A Final Simulation


Processor Sharing

Time-slicing model: pre-emptive multi-tasking

For example, three classes of jobs

  1. Jobs with active I/O: long think times, very little processing
  2. Interactive jobs without active I/O: substantial processing that will come to an end before long
  3. Batch jobs

Single server, three queues, needs a scheduling algorithm (discipline)

Important state

Initialization

Arrival

Departure

Start-service

Something is unrealistic about this model. What is it?

Something is unintuitive about this model. What is it?


Random Numbers

Text: chapter 12 & 29

Random Variables

The mathematical foundation for random number is the random variable, which is a variable that has different values on different occasions.

  1. A probability distribution determines what values a random variable gets, and how often
  2. Discrete versus continuous random variables
  3. We usually assume that the random variables we want are independent and identically distributed (iid or IID).
  4. Most random variables we use have underlying distributions that are non-negative.
  5. Random variables are normally written as capitals.

Random variable concepts

  1. Cumulative distribution function (cdf or CDF):
  2. Probability density function (pdf or PDF):
  3. Probability mass function (pmf or PMF):

In discrete event simulation we model quantities like interarrival time or service time as IID random variables


Return to: