Docsity

operating system 2nd year , Lecture notes of Operating Systems

Toggle sidebar
bg1
Introduction of Operating Systems
A computer system has many resources (hardware and software), which may be require to
complete a task. The commonly required resources are input/output devices, memory, file
storage space, CPU etc. The operating system acts as a manager of the above resources and
allocates them to specific programs and users as necessary for their task. Therefore operating
system is the resource manager i.e. it can manage the resource of a computer system internally.
The resources are processor, memory, files, and I/O devices.
Operating System Management Tasks
1. Processor management which involves putting the tasks into order and pairing them
into manageable size before they go to the CPU.
2. Memory management which coordinates data to and from RAM (random-access
memory) and determines the necessity for virtual memory.
3. Device management which provides interface between connected devices.
4. Storage management which directs permanent data storage.
5. Application which allows standard communication between software and your computer.
6. User interface which allows you to communicate with your computer.
Functions of Operating System
1. It boots the computer
pf3
pf4

Partial preview of the text

Download operating system 2nd year and more Lecture notes Operating Systems in PDF only on Docsity!

Introduction of Operating Systems

A computer system has many resources (hardware and software), which may be require to complete a task. The commonly required resources are input/output devices, memory, file storage space, CPU etc. The operating system acts as a manager of the above resources and allocates them to specific programs and users as necessary for their task. Therefore operating system is the resource manager i.e. it can manage the resource of a computer system internally. The resources are processor, memory, files, and I/O devices.

Operating System Management Tasks

  1. Processor management which involves putting the tasks into order and pairing them into manageable size before they go to the CPU.
  2. Memory management which coordinates data to and from RAM (random-access memory) and determines the necessity for virtual memory.
  3. Device management which provides interface between connected devices.
  4. Storage management which directs permanent data storage.
  5. Application which allows standard communication between software and your computer.
  6. User interface which allows you to communicate with your computer.

Functions of Operating System

  1. It boots the computer
  1. It performs basic computer tasks e.g. managing the various peripheral devices e.g. mouse, keyboard
  2. It provides a user interface, e.g. command line, graphical user interface (GUI)
  3. It handles system resources such as computer's memory and sharing of the central processing unit(CPU) time by various applications or peripheral devices.
  4. It provides file management which refers to the way that the operating system manipulates, stores, retrieves and saves data.
  5. (^) Error Handling is done by the operating system. It takes preventive measures whenever required to avoid errors.

Types of Operating Systems

Following are some of the most widely used types of Operating system.

  1. Simple Batch System
  2. Multiprogramming Batch System
  3. Multiprocessor System
  4. Distributed Operating System
  5. Realtime Operating System

SIMPLE BATCH SYSTEMS

  • In this type of system, there is no direct interaction between user and the computer.
  • The user has to submit a job (written on cards or tape) to a computer operator.
  • Then computer operator places a batch of several jobs on an input device.
  • Jobs are batched together by type of languages and requirement.
  • Then a special program, the monitor, manages the execution of each program in the batch.
  • The monitor is always in the main memory and available for execution.

Following are some disadvantages of this type of system :

  1. Zero interaction between user and computer.
  2. (^) No mechanism to prioritize processes.

MULTIPROGRAMMING BATCH SYSTEMS

  • In this the operating system, picks and begins to execute one job from memory.
  • Once this job needs an I/O operation operating system switches to another job (CPU and OS always busy).
  • Jobs in the memory are always less than the number of jobs on disk(Job Pool).
  • If several jobs are ready to run at the same time, then system chooses which one to run (CPU Scheduling).

While the real-time operating systems that can only guarantee a maximum of the time, i.e. the critical task will get priority over other tasks, but no assurity of completeing it in a defined time. These systems are referred to as Soft Real-Time Operating Systems.

S