Docsity

Operating System Introduction and Concepts, Slides of Operating Systems

Partial preview of the text

Download Operating System Introduction and Concepts and more Slides Operating Systems in PDF only on Docsity!

Operating System (OS)

What is an Operating System?

  • Computer System = Hardware + Software
  • Software = Application Software + System Software(OS)
  • An Operating System is a system Software that acts as an

intermediary/interface 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

CPU – Central Processing Unit

 This is the brain of your computer.

 It performs all of the calculations.

 In order to do its job, the CPU needs commands to perform, and data to

work with.

 The instructions and data travel to and from the CPU on the system bus.

 The operating system provides rules for how that information gets back and

forth, and how it will be used by the CPU.

RAM – Random Access Memory

 This is like a desk, or a workspace, where your computer temporarily stores all of
the information (data) and instructions (software or program code) that it is
currently using.
 Each RAM chip contains millions of address spaces.
 Each address space is the same size, and has its own unique identifying number
(address).
 The operating system provides the rules for using these memory spaces, and
controls storage and retrieval of information from RAM.
 Device drivers for RAM chips are included with the operating system.
Problem: If RAM needs an operating system to work, and an operating system needs
RAM in order to work, how does your computer activate its RAM to load the
operating system?

Types of Operating Systems

  1. Batch Operating System
  2. Multiprogramming Operating System
  3. Time-Sharing OS
  4. Multiprocessing OS
  5. Distributed OS
  6. Network OS
  7. Real Time OS
  8. Embedded OS

1. Batch Operating System

  • The users of this type of operating system does not interact with the computer directly.
  • Each user prepares his job on an off-line device like punch cards and submits it to the
computer operator
  • There is an operator which takes similar jobs having the same requirement and group them into batches.

2. Multiprogramming Operating System:

  • This type of OS is used to execute more than one jobs simultaneously by a single processor.
    • It increases CPU utilization by organizing jobs so that the CPU always has one job to execute.
  • Multiprogramming operating systems use the mechanism of job scheduling and CPU scheduling.

3. Time-Sharing Operating Systems

  • Each task is given some time to execute so that all the tasks work smoothly.
  • These systems are also known as Multi-tasking Systems.
  • The task can be from a single user or different users also.
  • The time that each task gets to execute is called quantum.
  • After this time interval is over OS switches over to the next task.

4. Multiprocessor operating systems

  • Multiprocessor operating systems are also known as parallel OS or tightly
coupled OS.
  • Such operating systems have more than one processor in close
communication that sharing the computer bus, the clock and sometimes
memory and peripheral devices.
  • It executes multiple jobs at the same time and makes the processing
faster.
  • It supports large physical address space and larger virtual address space.
  • If one processor fails then other processor should retrieve the interrupted
process state so execution of process can continue.
  • Inter-processes communication mechanism is provided and implemented in
hardware.
  1. Distributed Operating System
  • Various autonomous interconnected computers communicate with each other using a shared communication network.
  • Independent systems possess their own memory unit and CPU.
  • These are referred to as loosely coupled systems.
  1. Network Operating System Advantages of Network Operating System:  Highly stable centralized servers  Security concerns are handled through servers  New technologies and hardware up-gradation are easily integrated into the system  Server access is possible remotely from different locations and types of systems Disadvantages of Network Operating System:  Servers are costly  User has to depend on a central location for most operations  Maintenance and updates are required regularly Examples of Network Operating System are: Microsoft Windows Server 2003 / 2008 / 2012 , UNIX, Linux, Mac OS X, Novell NetWare, and BSD, etc.

7. Real-Time Operating System

  • These types of OSs serve real-time systems.
  • The time interval required to process and respond to inputs is very small.
  • This time interval is called response time.
  • Real-time systems are used when there are time requirements that are very

strict like

 missile systems,

 air traffic control systems,

 robots, etc.

19 Operating System a Resource Manager

  • Now-a-days all modern computers consist of processors, memories, timers,

network interfaces, printers, and so many other devices.

  • The operating system provides for an orderly and controlled allocation of

the processors, memories, and I/O devices among the various programs in

the bottom-up view.

  • Operating system allows multiple programs to be in memory and run at the

same time.

  • Resource management includes multiplexing or sharing resources in two

different ways: in time and in space.

  • In time multiplexed, different programs take a chance of using CPU. First

one tries to use the resource, then the next one that is ready in the queue and

so on. For example: Sharing the printer one after another.

Threads A thread is a single sequence stream within a process. Threads are also called lightweight processes as they possess some of the properties of processes. Each thread belongs to exactly one process

  • The primary difference is that threads within the same process run in a

shared memory space, while processes run in separate memory spaces.

Threads are not independent of one another like processes are, and as a

result, threads share with other threads their code section, data section, and

OS resources (like open files and signals). But, like a process, a thread has

its own program counter (PC), register set, and stack space.