ITEC 95(SIR ROWEE) Flashcards
Advantages of Modeling & Simulation
Allows for testing hypothetical scenarios without actual implementation.
- Can minimize risks and optimize performance.
- Provides a cost-effective solution for solving complex problems.
Limitations of Modeling & Simulation
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.
: One of the significant advantages of modeling and simulation is that it allows for extensive testing without the need for a physical prototype.
Testing
Modeling and simulation can also make upgrading an existing system or process more efficient.
Upgrading:
Another benefit of modeling and simulation is the ability to identify constraints in a system.
Identifying constraints:
Modeling and simulation can also be useful for diagnosing problems in a system.
Diagnostics:
Modeling and simulation can handle complex systems and processes that would be difficult to analyze using traditional methods.
Complexity:
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.
Testing:
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.
Upgrading
Modeling and simulation may also fail to identify constraints that are not included in the model.
Identifying constraints
Similarly, modeling and simulation may miss problems that are not included in the model.
Diagnostics:
Modeling and simulation can also be time-consuming and require significant computational resources, particularly for complex systems.
Complexity
Modeling and simulation can have ethical implications, such as the use of virtual animal testing instead of real-life testing.
Ethical Considerations
Transparency and accountability are important in the use and development of simulations.
Ethical Considerations
Advancements in technology such as artificial intelligence and machine learning can improve the accuracy and efficiency of simulation.
Future of Modeling & Simulation
More widespread use in fields such as urban planning and climate change modeling.
Future of Modeling & Simulation
Here are some examples of ethical considerations in modeling and simulation:
Data privacy
Bias and discrimination
Safety and reliability
Intellectual property
Transparency and accountability
The use of modeling and simulation is increasing in many fields, and there is a growing demand for professionals with expertise in this area.
Career Opportunities
Deciding which process/thread should occupy the resource (CPU, disk, etc)
Process Scheduling
Switch CPU from one process to another
Performed by scheduler
Context Switch
Need hardware support
Context Switch
When should the scheduler be called?
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)
The running process keeps the CPU until it voluntarily gives up the CPU
process exits
switches to blocked state
Transition 3 is only voluntar
Non-preemptive scheduling:
The running process can be interrupted and must release the CPU (can be forced to give up CPU)
Preemptive scheduling
(equitable shares of CPU)
Fairness
highest priority first)
Priority
make best use of equipment)
Efficiency
(can’t take advantage of the system)
Encouraging good behavior
degrade gracefully
Support for heavy loads
interactive, real-time, multi-media
Adapting to different environments
: keep resources as busy as possible
Efficiency
of processes that complete in unit time
Throughput:
Total amount of time spent by the process waiting in ready queue
Waiting Time
Amount of time spent by the process waiting in ready queue before it starts executing
Initial Waiting Time
amount of time from when a job is admitted until it completes
Response Time
Assign CPU proportionally to given application weight
Proportionality:
Proportionality:
Meeting Deadlines
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
Process that requests the CPU FIRST is allocated the CPU FIRST.
Also called _____
Used in Batch Systems
Implementation
First Come First Serve (FCFS)
Is it Preemptive or Non-preemptive?
NON-PREEMPTIVE
Problems with FCFS
Non-preemptive
Does not minimize AWT
Cannot utilize resources in parallel
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