الملخص لنظم التشغيل من 1الى6
الملخص لنظم التشغيل من 1الى6
الملخص لنظم التشغيل من 1الى6
The OS allocates resources, handles input and output requests, and translates
software instructions into instructions a computer chipset can execute.
Without an OS, a computer cannot load apps, display information, accept input,
or function at more than the most basic level.
Prepared by: Eng. Mohammed A. Badeh 2
What is an Operating System?
▪ A program that acts as an intermediary between a user of a computer and the computer
hardware
▪ Operating system goals:
➢ Execute user programs and make solving user problems easier
➢ Make the computer system convenient to use
➢ Use the computer hardware in an efficient manner
▪ “The one program running at all times on the computer” is the kernel, part of the operating
system
▪ Everything else is either
➢ A system program (ships with the operating system, but not part of the kernel) , or
➢ An application program, all programs not associated with the operating system
▪ Today’s OSes for general purpose and mobile computing also include middleware – a set of
software frameworks that provide additional services to application developers such as
databases, multimedia, graphics Prepared by: Eng. Mohammed A. Badeh 3
What Operating Systems Do?
▪ Depends on the point of view
▪ Users want convenience, ease of use and good performance
• Don’t care about resource utilization
▪ But shared computer such as mainframe or minicomputer must keep all users happy
• Operating system is a resource allocator and control program making efficient use of
HW and managing execution of user programs
These OSes are meant for applications where time constraints are very strict and even the
shortest possible delay is not acceptable. These systems are built for saving life like automatic
parachutes or airbags which are required to be readily available in case of any accident,
virtual memory is rarely found in these systems.
Soft Real-Time Systems:
These Operating Systems are for applications where for time-constraints is less strict.
▪ Traditional
▪ Peer-to-Peer
▪ Client Server
▪ Mobile
▪ Cloud computing
▪ Real-time Embedded
1. Single-processors Systems
2. Multi-processors Systems
3. Clustered Systems
1. Process Management
2. Memory Management
3. File-System Management
4. Mass-Storage Management
5. Cache Management
6. I/O System Management
• 1- Process control
• 2- File management
• 3- Device management
• 4- Information maintenance
• 5- Communications
• 6- Protection
68
Prepared by: Eng. Mohammed A. Badeh
Operating System Structure
• Most common used structure:
➢ Monolithic Structures
➢ Layered Approach
➢ Microkernels
➢ Modules
➢ Hybrid System
• Process Concept
• Process Scheduling
• Operations on Processes
• Inter-process Communication
2- Completion Time: The time at which the process enters the completion state or the time at which the process
completes its execution, is called completion time.
3- Turnaround time: The total amount of time spent by the process from its arrival to its completion, is called
Turnaround time.
4- Burst Time: The total amount of time required by the CPU to execute the whole process is called burst time.
This does not include the waiting time.
5- Waiting Time: The total amount of time for which the process waits for the CPU to be assigned is called
waiting time.
6- Response time: The difference between the arrival time and the time at which the process first gets the CPU is
called response time.
P2 P3 P1
0 3 6 30
P4 P1 P3 P2
0 3 9 16 24
P1 P2 P3 P1 P1 P1 P1 P1
0 4 7 10 14 18 22 26 30
The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0.
a. a. Draw four Gantt charts that illustrate the execution of these processes using the following scheduling
algorithms: FCFS, SJF, non-preemptive priority (a larger priority number implies a higher priority), and RR
(quantum = 2).
b. What is the waiting time of each process for each of these scheduling algorithms?
The processes are assumed to have arrived in the order P1, P2, P3, P4 all at time 0.
a. a. Draw four Gantt charts that illustrate the execution of these processes using the following scheduling
algorithms: FCFS, SRTF, Non preemptive priority (a larger priority number implies a higher priority, quantum =
5), and RR (quantum = 5).
b. What is the waiting time of each process for each of these scheduling algorithms?