Comp Computer Science

Computer ScienceUnit 48 min read

Software & OS: Types, Functions, and OS Basics

Unit 4 of Computer Science explains the difference between system and application software, how operating systems manage hardware and software, and the key functions of OS (process management, memory management, file management, device management, and security). It also covers the types of operating systems (batch, tim

What is Software?

Software is a set of instructions or programs that tell the computer how to perform specific tasks. It is classified into two main types:

  1. System Software

    • Manages computer hardware and provides a platform for other software to run.
    • Examples: Operating Systems (OS), Device Drivers, Utility Programs (e.g., antivirus, disk cleanup).
  2. Application Software

    • Designed to perform specific tasks for users.
    • Examples: Web browsers (Chrome, Firefox), Microsoft Office (Word, Excel), Games (PUBG, FIFA).
System SoftwareOperating SystemApplication SoftwareUtility Programs
Types of Software

What is an Operating System (OS)?

An Operating System (OS) is a system software that acts as an interface between the user and the hardware. It controls and manages all hardware and software resources of a computer system.

Functions of an Operating System

  1. Process Management

    • Creates, schedules, and terminates processes (a program in execution).
    • Example: When you open multiple apps (e.g., Chrome, Word, Spotify), the OS manages their execution.
  2. Memory Management

    • Allocates memory to different programs and ensures efficient use.
    • Example: When you open multiple tabs in Chrome, the OS decides which tabs to keep in RAM.
  3. File Management

    • Organizes and manages files and folders.
    • Example: When you save a file in a folder, the OS keeps track of its location.
  4. Device Management

    • Controls input/output devices (keyboard, mouse, printer, etc.).
    • Example: When you print a document, the OS sends the data to the printer.
  5. Security

    • Protects the system from unauthorized access.
    • Example: Password protection, user permissions.
UserOSHardwareApplications
OS as an Interface

Types of Operating Systems

Operating systems are classified based on their functionality and usage:

Type Description Examples Advantages Disadvantages
Batch OS Executes jobs in batches without user interaction. Old mainframe systems Efficient for large tasks No user interaction
Time-Sharing OS Allows multiple users to access the system simultaneously. Unix, Linux Multiple users can work at once Requires powerful hardware
Distributed OS Manages a group of independent computers and makes them appear as a single system. Google File System High reliability and scalability Complex to implement
Real-Time OS Responds to input within a strict time constraint. Embedded systems (e.g., traffic lights) High speed and reliability Requires specialized hardware
Embedded OS Runs on embedded systems (devices with dedicated functions). Android (smartphones), iOS Low resource usage Limited functionality
flowchart TD
    A["Types of OS"] --> B["Batch OS"]
    A --> C["Time-Sharing OS"]
    A --> D["Distributed OS"]
    A --> E["Real-Time OS"]
    A --> F["Embedded OS"]

How Does an Operating System Work?

The OS performs the following steps to manage a computer system:

  1. Booting

    • When you turn on the computer, the OS loads into the RAM from the storage device (e.g., SSD/HDD).
    • Example: Windows boot screen, Linux GRUB menu.
  2. Initialization

    • The OS initializes hardware components (CPU, RAM, storage, etc.).
    • Example: Checking if the mouse and keyboard are connected.
  3. Execution of User Commands

    • The OS waits for user input (e.g., clicking a file, typing a command).
    • Example: Opening Notepad by double-clicking its icon.
  4. Termination

    • When the user shuts down the system, the OS saves data and powers off safely.
    • Example: Saving documents before shutting down Windows.
sequenceDiagram
    User->>OS: Turns on computer
    OS->>Hardware: Initializes hardware
    User->>OS: Gives command (e.g., open file)
    OS->>Hardware: Executes command
    User->>OS: Shuts down
    OS->>Hardware: Saves data and powers off

Here are some widely used operating systems:

OS Name Type Used On Key Features
Windows Time-Sharing PCs, Laptops User-friendly GUI, wide software support
Linux Time-Sharing Servers, PCs, Embedded Systems Open-source, highly customizable
macOS Time-Sharing Apple Mac Computers Seamless integration with Apple devices
Android Embedded Smartphones, Tablets Touchscreen optimized, Google services
iOS Embedded iPhones, iPads Secure, Apple ecosystem integration

Solved Example: Identifying OS Types

Question: Which type of OS is used in the following scenarios?

  1. A system that controls traffic lights at a busy intersection.
  2. A university computer lab where multiple students access the same system simultaneously.

Solution:

  1. Traffic lights → Real-Time OS (must respond instantly to changes).
  2. University computer lab → Time-Sharing OS (allows multiple users to work at once).

NEB Board-Style Questions

Short Answer Questions

  1. Define an operating system. List any three functions of an OS.
  2. Differentiate between system software and application software with examples.
  3. What is a batch operating system? Give one advantage and one disadvantage.
  4. Explain the role of memory management in an OS.
  5. Name two embedded operating systems and their applications.

Long Answer Questions

  1. Explain the functions of an operating system with examples. Also, describe the types of operating systems with their advantages and disadvantages.
  2. What is process management in an OS? How does it ensure efficient execution of multiple programs?
  3. Compare and contrast time-sharing OS and real-time OS with suitable examples.
  4. Describe the booting process of an operating system. What happens during initialization?
  5. Write short notes on:
    • File management in an OS.
    • The importance of security in an OS.

Exam Tip

  1. Understand Definitions: Always revise key definitions like "What is an OS?" and "What is system software?"
  2. Compare and Contrast: Questions often ask to compare different types of OS (e.g., batch vs. time-sharing). Use tables for clarity.
  3. Real-Life Examples: Relate OS concepts to everyday devices (e.g., smartphones use embedded OS, universities use time-sharing OS).
  4. Diagrams: Draw flowcharts or tables to explain processes like booting or OS functions.
  5. Practice Short Notes: NEB often asks for short notes on specific topics like "memory management" or "device management." Keep them concise and to the point.

Summary:

  • Software is divided into system software (OS, utilities) and application software (apps, games).
  • An OS manages hardware, memory, processes, files, and security.
  • Types of OS include batch, time-sharing, distributed, real-time, and embedded, each with unique features.
  • Popular OS examples: Windows, Linux, macOS, Android, iOS.
  • Always link concepts to real-world examples in exams!

Based on the NEB +2 Science syllabus for Computer Science (Comp), unit 4.

Discussion

Loading…