LectureNote 04 Flashcards

1
Q

What is a queuing system?

A

A discrete-event model that uses random numbers to represent the arrival and duration of events.

Queuing systems consist of servers and queues of objects to be served, typically following a first-in, first-out structure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the objective of a queuing system?

A

To utilize the servers as fully as possible while keeping the wait time within a reasonable limit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the components of a queuing system?

A
  • Arrivals: Entities arriving at the system (e.g., customers, data packets)
  • Queue: Waiting line where entities may wait for service
  • Servers: Resources providing the service (e.g., machines, workers)
  • Service: Process by which entities receive attention or processing
  • Departure: Entities leave the system after service.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does queuing theory help in simulation?

A

It allows for careful analysis and optimization of waiting lines through features such as arrival frequency, service times, and queue capacity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What can queuing theory predict for businesses?

A
  • Processing times of customer requests
  • The number of people who have to wait in line
  • The number of rejected or lost customers in a queue
  • The utilization of resources that handle customer requests.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the purpose of queue modeling?

A

To discover a balance between waiting times and resource utilization.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the six characteristics of queueing systems in Kendall’s notation?

A
  • A: Arrival process
  • S: Service process
  • c: Number of servers
  • K: Capacity of the queue
  • N: Population size
  • D: Queueing discipline.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the parameter ‘A’ in Kendall’s notation represent?

A

The arrival process, representing the frequency of new requests arriving in the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the parameter ‘S’ in Kendall’s notation represent?

A

The service process, which denotes the amount of time necessary to service a request.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the parameter ‘c’ in Kendall’s notation indicate?

A

The number of servers who handle requests in the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the parameter ‘K’ in Kendall’s notation refer to?

A

The capacity of the queue, indicating how many requests can be taken by the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the parameter ‘N’ in Kendall’s notation signify?

A

The population size from which customers arrive, often assumed to be infinite.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the parameter ‘D’ in Kendall’s notation determine?

A

The queueing discipline, which dictates how requests are handled and prioritized by the servers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the First-Come, First-Served (FCFS) scheduling process?

A

A scheduling method where the process requesting CPU first gets it first, managed with a FIFO queue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the average waiting time for processes in FCFS scheduling?

A

Calculated by taking the sum of individual waiting times divided by the number of processes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Shortest-Job-First (SJF) scheduling?

A

A scheduling method that associates each process with the length of its next CPU burst and schedules the process with the shortest time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is a key challenge of implementing SJF scheduling?

A

It is impossible to implement perfectly because it requires knowledge of the length of the next CPU request.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the formula to predict the time a process will use on its next schedule in SJF?

A

t(n+1) = w * t(n) + (1 - w) * T(n), where: t(n+1) is time of next burst, t(n) is time of current burst, T(n) is average of all previous bursts, w is a weighting factor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What does SJF stand for?

A

Shortest-Job-First

20
Q

What is the formula for predicting the time of the next process in SJF scheduling?

A

t(n+1) = w * t(n) + (1 - w) * T(n)

21
Q

In the formula t(n+1) = w * t(n) + (1 - w) * T(n), what does t(n+1) represent?

A

Time of next burst

22
Q

In the formula t(n+1) = w * t(n) + (1 - w) * T(n), what does T(n) represent?

A

Average of all previous bursts

23
Q

In SJF scheduling, what is the average waiting time calculated for the processes P1, P2, P3, and P4?

24
Q

What is the burst time of process P4 in the SJF example?

25
Q

What is the average waiting time for the preemptive SJF example?

A

6.5 milliseconds

26
Q

In Priority Scheduling, what is associated with each process?

A

A priority number (integer)

27
Q

True or False: In Priority Scheduling, the CPU is allocated to the process with the lowest priority number.

28
Q

In Priority Scheduling, what does SJF represent?

A

Shortest-Job-First scheduling where priority is the inverse of predicted next CPU burst time

29
Q

What is the average waiting time calculated in the example of Priority Scheduling?

30
Q

What does Round Robin (RR) scheduling entail?

A

Each process gets a small unit of CPU time (time quantum q)

31
Q

What happens when a process exceeds its time quantum in Round Robin scheduling?

A

The process is preempted and added to the end of the ready queue

32
Q

What is the typical range for time quantum in Round Robin scheduling?

A

10-100 milliseconds

33
Q

In the example of RR with a time quantum of 4, what is the burst time of process P1?

34
Q

True or False: Round Robin scheduling typically has a lower average turnaround time than SJF.

35
Q

List some notable industries where queueing theory has found application.

A
  • Healthcare
  • Banking
  • Traffic management
  • Manufacturing
  • Transportation and logistics
  • Call centers
  • Telecommunications and computer systems
  • Customer Service
36
Q

What does the symbol λ denote in queuing theory?

A

The arrival rate (number of arrivals per second)

37
Q

What does the symbol Ts represent in queuing theory?

A

The mean service time for each arrival excluding the waiting time in the queue

38
Q

What is the mean waiting time of all items denoted by in queuing theory?

39
Q

What characterizes a Single Server Queue?

A

It has a single server providing service to connected devices or items

40
Q

In a Multi Server Queue, what happens when an item requests a server and none are available?

A

The queue begins to start until a server is free

41
Q

What is the maximum input rate in a Multi Server Queue represented by?

A

λmax = N/Ts

42
Q

What is the purpose of a time-sharing system?

A

To allow multiple users to share system resources simultaneously

43
Q

What is an example of a time-sharing simulation system?

44
Q

What is the focus of the SimOS simulation system?

A

To study complex computer hardware designs, analyze application performance, and study operating systems

45
Q

Differentiate between Balking and Reneging in queuing theory.

A

Balking occurs when a customer decides not to enter a queue due to long wait times, while Reneging occurs when a customer leaves the queue after waiting for some time.