Docsity

Understanding operating systems, Lecture notes of Operating Systems

Partial preview of the text

Download Understanding operating systems and more Lecture notes Operating Systems in PDF only on Docsity!

Understanding the

Operating System

1.1 Definition of an Operating System An Operating System (OS) is system software that acts as an interface between computer hardware and the user. It manages hardware resources, provides common services for application programs, and ensures that the computer system operates efficiently and securely. Without an operating system, users would have to interact directly with hardware components, which is complex and impractical. In simple terms, the operating system is the manager of the computer system. It controls how software applications access hardware resources such as the CPU, memory, storage devices, and input/output peripherals.

1.Definition and Role of an Operating

System

The operating system performs several critical roles, including: c) File Management

  • (^) Organizes data into files and directories.
  • (^) Controls file creation, deletion, reading, and writing.
  • (^) Manages access permissions to ensure data security.
  • (^) Supports different file systems (e.g. NTFS, FAT32, ext4). d) Device and I/O Management
  • (^) Controls communication between the system and peripheral devices.
  • (^) Uses device drivers to interact with hardware.
  • (^) Manages input/output operations and buffering.

1.2 Role and Functions of an Operating

System

The operating system performs several critical roles, including: e) Security and User Management

  • (^) Authenticates users through usernames and passwords.
  • (^) Enforces access control and permissions.
  • (^) Protects the system against unauthorized access and malware. f) User Interface
  • (^) Provides a way for users to interact with the computer.
  • (^) Can be a Command Line Interface (CLI) or Graphical User Interface (GUI).

1.2 Role and Functions of an Operating

System

2.3 Batch Operating Systems

  • (^) Jobs are collected and executed in batches with no user interaction during execution.
  • (^) Efficient for large volumes of similar tasks.
  • (^) Used in early computer systems and some modern back-end processing.
  • (^) Example: Mainframe systems. 2.4 Time-Sharing Operating Systems
  • (^) Allow multiple users to interact with the system at the same time.
  • (^) CPU time is divided into small slices and shared among users.
  • (^) Provides fast response time.
  • (^) Examples: UNIX, Linux

2. Types of Operating Systems

2.5 Real-Time Operating Systems (RTOS)

  • (^) Designed to process data and respond within strict time constraints.
  • (^) Used in environments where timing is critical.
  • (^) Two types: ( Hard real-time systems: deadlines must always be met. And soft real-time systems: occasional deadline misses are acceptable.)
  • (^) Examples: VxWorks, QNX. 2.4 Time-Sharing Operating Systems
  • (^) Allow multiple users to interact with the system at the same time.
  • (^) CPU time is divided into small slices and shared among users.
  • (^) Provides fast response time.
  • (^) Examples: UNIX, Linux

2. Types of Operating Systems

An operating system is made up of several key components that work together to manage the system. 3.1 Kernel

  • (^) The core of the operating system.
  • (^) Runs in privileged mode.
  • (^) Responsible for CPU scheduling, memory management, and hardware control.
  • (^) Types of kernels: Monolithic kernel, Microkernel

3.2 Process Management Module

  • (^) Manages process creation and execution.
  • (^) Handles multitasking and context switching.
  • (^) Ensures processes do not interfere with each other.

3. Operating System Components

3.3 Memory Management Module

  • (^) Tracks memory usage.
  • (^) Allocates memory to processes.
  • (^) Implements virtual memory.
  • (^) Prevents unauthorized memory access.

3.4 File System

  • (^) Manages how data is stored and retrieved.
  • (^) Organizes files into directories.
  • (^) Maintains file metadata such as size, type, and permissions.

3.5 Device Drivers

  • (^) Specialized programs that allow the OS to communicate with hardware devices.
  • (^) Each hardware device requires a compatible driver.

3. Operating System Components

Thank

you

Boipelo Kenosi

www.bothouniversity.com