ITC C++ Programming LAB4
ITC C++ Programming LAB4
Farhan Memon
Electrical Engineering Introduction to Computers & C++
Mehran University of Engineering Year 1ST Semester 1st
& Technology Batch 17 Duration 03
Jamshoro Hours
Outlines
· Operating System
· Bootstrap Process
· Goals of Operating System
· Functions of Operating System
· Operating System Terms
· History of Operating Systems
· Open Source Vs Closed Source Operating System
· Types of Operating Systems
· Lab Tasks
Requirements
· Operating System: Windows 8/10
1
OPERATING SYSTEM
2
Some popular Operating Systems are: Windows, Linux and Mac OS.
3
BOOTSTRAP PROCESS
The Operating System is responsible for loading other programs into memory for
execution.
Obviously, the operating system itself is a program that needs to be loaded into the memory
and be run.
How is this problem solved?!
3. When loading is done, the program counter is set to the first instruction of the
operating system in RAM, and the operating system runs.
4
Bootstrapping
Bootstrapping is the process of loading an operating system into the computer's main
memory or random access memory (RAM) from the disk drive.
“OR”
5
FUNCTIONS OF OPERATING SYSTEM
6
OPERATING SYSTEM TERMS
• Single • Singl e
User Single User Multi
Tasking Tasking
SUST SUMT
MUMT MUST
• Multi User • Multi User
Multi Singl e
Tasking Tasking
7
HISTORY OF OPERATING SYSTEMS
8
OPEN SOURCE VS CLOSED SOURCE OPERATING SYSTEM
9
TYPES OF OPERATING SYSTEMS
• Batch Processing
• Uniprogramming
• Multiprogramming
• Timesharing
• Multiprocessing
• Distributed
• Network
• Realtime
Operating S ystem
Batch Processing
Users do not interact directly with the computer. Each user submits its job to the computer
operator (human). To speed up processing, similar types of jobs are firstly batched
together and then will be submitted to the system for processing. The system then executes
all jobs one by one.
10
Uniprogramming
Allow only one program to be present in memory and executed at a time. All the system
resources are exclusively available for the job until it completed.
Multiprogramming
Allow two or more programs to be present in memory and executed at the same time.
When one job had to wait (e.g. I/O operation), CPU switch to another job to execute.
When the first job finishes waiting, CPU will get back the first job to execute.
11
Timesharing
Multiprocessing
Multiprocessing system is a integrated system with two or more CPUs. Allow simultaneous
execution of several programs.
12
Distributed
Computers in a distributed system are independent and do not physically share
memory or processors.
Distributed systems work in a network. They can share the net work resources and
communicate with each other using messages. These are referred as loosely coupled
systems. These computers are commonly referred as nodes.
13
Network
Network Operating System having features:
Real-time
Real time system is a data processing system in which the time interval required to
process and respond.
Real-time systems are used when there are immediate time requirements on the
operation.
Real-time systems can also be used as a controlling system, in which monitoring assistant
is associated.
Examples: image processing systems, industrial control systems, robots, and home-
appliance controllers, Air traffic control system etc.
14
LAB TASKS
1. What are the various components of a computer system?
2. What is user interface?
3. What do you mean by CLI & GUI?
4. Is Windows an Open Source Operating System?
5. Have you heard the term “Linux” before? If Yes, where exactly?
SUBMISSION:
In Hard-Format (manual along with exercise), will be checked in the next Lab
The End
\