Operating Systems Lecture # 1
Operating Systems Lecture # 1
LECTURE # 1
RAZI UDDIN
GOOGLE CLASSROOM ACCESS CODE
2
PURPOSE OF COMPUTER SYSTEM
3
COMPUTER SYSTEM ORGANIZATION
▪ Hardware
▪ Operating System
▪ Application Programs
▪ Users
4
5
COMPUTER SYSTEM ORGANIZATION
6
• The primary purpose of a computer system is to generate executable
programs and execute them.
• The following are some of the main issues involved in performing
these tasks.
1. Storing an executable on a secondary storage device such as hard
disk
2. Loading executable from disk into the main memory
3. Setting the CPU state appropriately so that program execution
could begin
4. Creating multiple cooperating processes, synchronizing their access
to shared data, and allowing them to communicate with each other 7
WHAT IS AN OPERATING SYSTEM
• Early computers were large machines run from a console with card readers and
tape drives as input devices and line printers, tape drives, and card punches as
output devices.
• User did not interact directly with the system; instead the user prepared a job,
which consisted of the program, data, and some control information about the
nature of the job.
• The job was in the form of punch cards, and at some later time the output was
generated by the system.
• Output=> result of the program + dump of the final memory and register
contents for debugging
10
BATCH SYSTEMS
• A real-time system has well-defined, fixed time constraints, and if the system
does not produce output for input within the time constraints, the system will fail.
• Real time systems come in two flavors: hard and soft.
• A hard real-time system guarantees that critical tasks be completed on time.
• A less restrictive type of real-time system is a soft real-time system, where a
critical real-time task gets priority over other tasks, and retains that priority until
it completes.
• Example: Systems that control scientific experiments, medical imaging systems,
industrial control systems, and certain display systems.
14
HARD REAL-TIME SYSTEM
15
SOFT REAL-TIME SYSTEM
• Where a critical real-time task gets priority over other tasks, and
retains that priority until it completes.
• As in hard real-time systems, the operating system kernel delays
need to be bounded.
• Soft real-time is an achievable goal that can be mixed with other
types of systems,
• Whereas hard real-time systems conflict with the operation of other
systems such as time-sharing systems, the two cannot be mixed.
16