ITEC 95(SIR ROWEE) Flashcards

1
Q

Advantages of Modeling & Simulation

A

Allows for testing hypothetical scenarios without actual implementation.

  • Can minimize risks and optimize performance.
  • Provides a cost-effective solution for solving complex problems.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Limitations of Modeling & Simulation

A

Models may not accurately capture real-world behavior.

  • Can be time-consuming and require expertise to create.
  • Data availability and quality can greatly affect the accuracy of the simulation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

: One of the significant advantages of modeling and simulation is that it allows for extensive testing without the need for a physical prototype.

A

Testing

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

Modeling and simulation can also make upgrading an existing system or process more efficient.

A

Upgrading:

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

Another benefit of modeling and simulation is the ability to identify constraints in a system.

A

Identifying constraints:

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

Modeling and simulation can also be useful for diagnosing problems in a system.

A

Diagnostics:

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

Modeling and simulation can handle complex systems and processes that would be difficult to analyze using traditional methods.

A

Complexity:

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

One potential disadvantage of modeling and simulation is that it may not accurately represent the real-world system. This can result in false positives or false negatives during testing.

A

Testing:

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

Another disadvantage is that the simulation may not accurately predict the impact of changes on the system. This can result in unexpected consequences when the changes are made in the physical system.

A

Upgrading

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

Modeling and simulation may also fail to identify constraints that are not included in the model.

A

Identifying constraints

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

Similarly, modeling and simulation may miss problems that are not included in the model.

A

Diagnostics:

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

Modeling and simulation can also be time-consuming and require significant computational resources, particularly for complex systems.

A

Complexity

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

Modeling and simulation can have ethical implications, such as the use of virtual animal testing instead of real-life testing.

A

Ethical Considerations

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

Transparency and accountability are important in the use and development of simulations.

A

Ethical Considerations

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

Advancements in technology such as artificial intelligence and machine learning can improve the accuracy and efficiency of simulation.

A

Future of Modeling & Simulation

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

More widespread use in fields such as urban planning and climate change modeling.

A

Future of Modeling & Simulation

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

Here are some examples of ethical considerations in modeling and simulation:

A

Data privacy
Bias and discrimination
Safety and reliability
Intellectual property
Transparency and accountability

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

The use of modeling and simulation is increasing in many fields, and there is a growing demand for professionals with expertise in this area.

A

Career Opportunities

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

Deciding which process/thread should occupy the resource (CPU, disk, etc)

A

Process Scheduling

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

Switch CPU from one process to another
Performed by scheduler

A

Context Switch

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

Need hardware support

A

Context Switch

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

When should the scheduler be called?

A

A new process is admitted
The running process exits
The running process is blocked
I/O interrupt (some processes will be ready)
Clock interrupt (every 10 milliseconds)

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

The running process keeps the CPU until it voluntarily gives up the CPU
process exits
switches to blocked state
Transition 3 is only voluntar

A

Non-preemptive scheduling:

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

The running process can be interrupted and must release the CPU (can be forced to give up CPU)

A

Preemptive scheduling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
(equitable shares of CPU)
Fairness
26
highest priority first)
Priority
27
make best use of equipment)
Efficiency
28
(can’t take advantage of the system)
Encouraging good behavior
29
degrade gracefully
Support for heavy loads
30
interactive, real-time, multi-media
Adapting to different environments
31
: keep resources as busy as possible
Efficiency
32
of processes that complete in unit time
Throughput:
33
Total amount of time spent by the process waiting in ready queue
Waiting Time
34
Amount of time spent by the process waiting in ready queue before it starts executing
Initial Waiting Time
35
amount of time from when a job is admitted until it completes
Response Time
36
Assign CPU proportionally to given application weight
Proportionality:
37
Proportionality:
Meeting Deadlines
38
Scheduling should load balance between I/O bound and CPU-bound processes Ideal would be to run all equipment at 100% utilization but that would not necessarily be good for response time
Process Mix
39
Process that requests the CPU FIRST is allocated the CPU FIRST. Also called _____ Used in Batch Systems Implementation
First Come First Serve (FCFS)
40
Is it Preemptive or Non-preemptive?
NON-PREEMPTIVE
41
Problems with FCFS
Non-preemptive Does not minimize AWT Cannot utilize resources in parallel
42
Usually preemptive Time is sliced into quanta (time intervals) Scheduling decision is also made at the beginning of each quantum Performance Criteria Average response time Average initial waiting time Average waiting time Fairness (or proportional resource allocation) Representative algorithms: Round-robin Priority-based
Interactive Scheduling Algorithms
43
One of the oldest, simplest, most commonly used scheduling algorithm Select process/thread from ready queue in a round-robin fashion (take turns)
Round-robin
44
Schedule the job with the shortest computation time first Scheduling in Batch Systems Two types: Non-preemptive Preemptive Optimal if all jobs are available simultaneously: Gives the best possible AWT (average waiting time)
Shortest Job First (SJF)
45
Shortest job runs first. A job that arrives and is shorter than the running job will preempt it
Preemptive SJF
46
A job may keep getting preempted by shorter ones
Starvation
47
A Problem with Preemptive SJF
STARVATION
48
Examples include Air Combat Training Simulation System, Tactical Air Crew Combat Training System, ZAP Missile Launch, Integrated Air Defense Systems. - Used to train soldiers in a simulated environment that replicates real-life scenarios. - Helps improve decision-making skills and situational awareness of soldiers
Simulation for Training
49
- Examples include Full Body Vasculature Silicone Model, Vital Sign Simulation, CFD Simulation. - Used to train medical professionals and students in a safe and controlled environment. - Helps improve skills and knowledge in diagnosis, treatment, and surgery.
Simulation for Health and Medicine
50
- Examples include Multi-physics simulation in ski manufacturing, simulation for fuel injector design and spray. - Used to design and improve engineering systems and products. - Helps predict system behavior, optimize product performance, and reduce costs and production time
Simulation for Engineering
51
- Simulations in education are somewhat like training simulations. They focus on specific tasks. - a more recent use of simulation in education include animated narrative vignettes (ANV). ANVs are cartoon-like video narratives of hypothetical and reality-based stories involving classroom teaching and learning
Simulation in Education
52
Discuss how modeling and simulation are used in the telecommunications industry to design and optimize networks, predict and prevent failures, and improve performance.
Simulation in Telecommunications:
53
Discuss how modeling and simulation are used in business to make decisions, forecast trends, and optimize processes
Simulation in Business:
54
Discuss how modeling and simulation are used in training and support for various industries, such as healthcare and aviation
Simulation in Training and Support:
55
Provides a safe and controlled environment for training and experimentation. - Helps improve decision-making skills, knowledge, and performance in various fields. - Reduces costs and production time by optimizing product design and performance
Benefits of Modeling and Simulation
56
- Allows for testing hypothetical scenarios without actual implementation. - Can minimize risks and optimize performance. - Provides a cost-effective solution for solving complex problems
Advantages of Modeling & Simulation
57
- Models may not accurately capture real-world behavior. - Can be time-consuming and require expertise to create. - Data availability and quality can greatly affect the accuracy of the simulation.
Limitations of Modeling & Simulation
58
TT=
CT-AT
59
WT=
TT-BT
60
CT=
AT+BT
61
CPU UTILIZATION=
(TOTAL CT/TOTAL ELAPSED TIME)*100%
62
Usually preemptive Time is sliced into quanta (time intervals) Scheduling decision is also made at the beginning of each quantum Performance Criteria Average response time Average initial waiting time Average waiting time Fairness (or proportional resource allocation) Representative algorithms: Round-robin Priority-based
Interactive Scheduling Algorithms
63
One of the oldest, simplest, most commonly used scheduling algorithm Select process/thread from ready queue in a round-robin fashion (take turns)
Round-robin
64
70-80% of jobs block within time-slice
Heuristic:
65
10-100 ms (depends on job priority)
Typical time-slice
66
Too many context switches (overheads) Inefficient CPU utilization
Time slice too small
67
FIFO behavior Poor initial waiting time
Time slice too large
68
Schedule the job with the shortest computation time first Scheduling in Batch Systems
Shortest Job First (SJF)
69
TWO TYPES OF SJF:
Non-preemptive Preemptive
70
Shortest job runs first. A job that arrives and is shorter than the running job will preempt it
Preemptive SJF
71
A Problem with Preemptive SJF
Starvation
72
A job may keep getting preempted by shorter ones
Starvation
73
time it takes for the dispatcher to stop one process and start another running
Dispatch latency
74
Selects from among the processes in memory that are ready to execute, and allocates the CPU to one of them
CPU Scheduler
75
gives control of the CPU to the process selected by the scheduler; this involves:
Dispatcher module
76
keep the CPU as busy as possible
CPU utilization
77
of processes that complete their execution per time unit
Throughput
78
amount of time to execute a particular process
Turnaround time
79
amount of time a process has been waiting in the ready queue
Waiting time
80
amount of time it takes from when a request was submitted until the first response is produced, not output (for time-sharing environment)
Response time
81
Associate with each process the length of its next CPU burst. Use these lengths to schedule the process with the shortest time.
Shortest-Job-First (SJF) Scheduling
82
gives minimum average waiting time for a given set of processes
SJF is optimal
83
A priority number (integer) is associated with each process
Priority Scheduling
84
The CPU is allocated to the process with the highest priority (smallest integer ≡ highest priority)
Priority Scheduling
85
low priority processes may never execute
Starvation
86
as time progresses increase the priority of the process
Aging
87
Each process gets a small unit of CPU time (time quantum), usually 10-100 milliseconds. After this time has elapsed, the process is preempted and added to the end of the ready queue.
Round Robin (RR)
88
Ready queue is partitioned into separate queues: foreground (interactive) background (batch) Each queue has its own scheduling algorithm: foreground – RR background – FCFS Scheduling must be done between the queues: Fixed priority scheduling; (i.e., serve all from foreground then from background). Possibility of starvation. Time slice – each queue gets a certain amount of CPU time which it can schedule amongst its processes; i.e., 80% to foreground in RR 20% to background in FCFS
Multilevel Queue
89
A process can move between the various queues; aging can be implemented this way. Multilevel-feedback-queue scheduler defined by the following parameters:
Multilevel Feedback Queue
90
Distinction between user-level and kernel-level threads
91
Many-to-one and many-to-many models, thread library schedules user-level threads to run on LWP Known as process-contention scope (PCS) since scheduling competition is within the process
Thread Scheduling
92
Kernel thread scheduled onto available CPU is system-contention scope (SCS) – competition among all threads in system
Thread Scheduling
93
competition among all threads in system
system-contention scope (SCS)
94
API allows specifying either PCS or SCS during thread creation
Pthread Scheduling
95
CPU scheduling more complex when multiple CPUs are available
Multiple-Processor Scheduling
96
only one processor accesses the system data structures, alleviating the need for data sharing
Asymmetric multiprocessing
97
each processor is self-scheduling, all processes in common ready queue, or each has its own private queue of ready processes
Symmetric multiprocessing (SMP)
98
process has affinity for processor on which it is currently running
Processor affinity
99
Recent trend to place multiple processor cores on same physical chip
Multicore Processors
100
Faster and consume less power
Multicore Processors
101
Multiple threads per core also growing Takes advantage of memory stall to make progress on another thread while memory retrieve happens
Multicore Processors
102
Constant order O(1) scheduling time
Linux Scheduling
103
Two priority ranges: time-sharing and real-time
Linux Scheduling
104
Real-time range from 0 to 99 and nice value from 100 to 140
Linux Scheduling
105
takes a particular predetermined workload and defines the performance of each algorithm for that workload
Deterministic modeling