Computer Software and Operating System

    Computer Software and Operating System

    Reading Mode:

    Computer Science тАУ Grade XI

    Unit 3: Computer Software and Operating System

    Topics covered: 3.1 Concept of Software ┬╖ 3.2 Concept of Operating System ┬╖ 3.3 Windows Operating System ┬╖ 3.4 Open Source and Mobile Operating Systems


    3.1 Concept of Software

    3.1.1 Definition of Software

    A program is a set of instructions written in a programming language to make the computer perform a task. Software is a collection of programs, data and related documentation that tells the computer what to do and how to do it.

    • Software is the logical (non-touchable) part of a computer, while hardware is the physical part.
    • Hardware cannot work without software, just as a body cannot work without a mind.
    • Software works as the interface between the user and the hardware.
    HardwareSoftware
    Physical parts that can be touchedPrograms and data that cannot be touched
    Example: keyboard, monitor, CPUExample: Windows, MS Word, Chrome
    Wears out with timeDoes not wear out (but can have bugs or be corrupted)
    Damaged by dust, water, heatDamaged by viruses, bugs, deletion

    3.1.2 Categories of Software

    Software
    тФЬтФАтФА System Software      (operating system, language translators, device drivers)
    тФЬтФАтФА Utility Software
    тФЬтФАтФА Application Software (packaged / general-purpose, tailored / custom-made)
    тФЬтФАтФА Web-based Software
    тФФтФАтФА Mobile Apps
    

    1. System Software

    System software controls and manages the computer hardware and provides a platform on which other software can run. A computer cannot start or work without it.

    Main types

    TypeFunctionExamples
    Operating systemManages hardware and resources; interface between user and computerWindows, Linux, macOS, Android
    Language translators (language processors)Convert programs written in a programming language into machine languageAssembler, compiler, interpreter
    Device driversLet the OS communicate with a particular hardware devicePrinter driver, graphics driver, USB driver

    Language translators

    TranslatorFunction
    AssemblerTranslates assembly language into machine language
    CompilerTranslates the whole high-level program at once into machine code and then reports all errors
    InterpreterTranslates and executes a high-level program line by line; stops at the first error
    CompilerInterpreter
    Translates the whole program at one timeTranslates one statement at a time
    Shows all errors together after compilationShows an error as soon as it finds it
    Execution is faster after compilingExecution is slower
    Produces a separate object/executable fileDoes not produce a separate file
    Example languages: C, C++Example languages: Python, JavaScript (typically)

    Device driver: a small program that works as a translator between the operating system and a hardware device. Without the correct driver, a device (for example a printer or a graphics card) may not work properly.


    2. Utility Software

    Utility software helps to maintain, analyse, protect and optimise the computer. It supports the operating system by performing a single task or a small group of tasks.

    UtilityPurpose
    AntivirusDetects, blocks and removes viruses and other malware
    Backup softwareMakes copies of files so that data can be restored after loss
    Disk cleanupRemoves temporary and unnecessary files to free disk space
    Disk defragmenterArranges scattered pieces of files on a hard disk (HDD) so they can be read faster. (Not required for SSDs.)
    Disk checker (scan disk)Scans a disk for errors and bad sectors
    Disk partitioning toolDivides a disk into separate sections (partitions)
    File managerLets users create, open, copy, move, rename and delete files and folders (File Explorer)
    File compressionReduces the size of files (WinRAR, 7-Zip, ZIP)

    3. Application Software

    Application software is designed to help the user perform a specific task. It depends on the operating system to run. Examples: word processing, accounting, reservation, result preparation, games.

    (a) Packaged software (general-purpose software)

    Ready-made software developed by a company for the common needs of many users.

    • Sold to many customers; not designed for one person or organization.
    • Usually cheaper, easy to get, tested by many users, supported by the company.
    • Examples: MS Word, MS Excel, MS PowerPoint, MS Access, Adobe Photoshop, Google Chrome.

    (b) Tailored software (custom-made software)

    Software developed for the specific needs of one person or organization.

    • Made on demand; one organization's software usually cannot be used by another.
    • Costs more and takes more time, but fits the requirement exactly.
    • Examples: school management system, hospital management system, payroll system, hotel reservation system, library management system, banking software.
    Packaged SoftwareTailored Software
    Developed for many usersDeveloped for one user or organization
    CheaperMore expensive
    Available immediatelyTakes time to develop
    May include unnecessary featuresContains exactly the required features
    Example: MS OfficeExample: School management system

    Difference between system software and application software

    System SoftwareApplication Software
    Manages and controls hardware and provides a platform for other softwareHelps the user to perform a specific task
    Hardware-orientedUser-oriented
    Needed to start and run the computerInstalled only when the user needs it
    Runs in the background most of the timeRuns when the user opens it
    Written in low-level or system languages (C, assembly)Written in high-level languages (Java, Python, C#)
    Example: Windows, Linux, device driversExample: MS Word, Photoshop, VLC

    4. Web-based Software

    Application software that is accessed over the Internet through a web browser (using HTTP/HTTPS) instead of being fully installed on the computer. The main processing is done on a remote server.

    • Examples: Gmail, Google Docs, Google Sheets, Facebook, online banking, online shopping sites.
    • Advantages: no installation, can be used from any device with a browser, automatic updates, easy sharing and teamwork.
    • Disadvantages: needs Internet connection, depends on the server's availability, privacy and security concerns.

    5. Mobile Apps

    Application software developed for smartphones, tablets and other small wireless devices. An app is started by tapping its icon.

    TypeDescriptionExample
    Native appBuilt for one specific platform (Android or iOS) and installed from an app storeCamera app, many games
    Web-based appRuns in the browser; works through the InternetMobile website apps
    Hybrid appCombination of native and web technologiesMany social media and shopping apps

    Features of mobile apps: fast access, use of device features (camera, GPS), notifications, offline and online use, interactive and touch-friendly.


    3.2 Concept of Operating System

    3.2.1 Introduction to Operating System

    An operating system (OS) is a system software that manages computer hardware and software resources and provides a common platform and interface between the user, the application programs and the hardware.

    • It is the first software loaded when a computer starts and the last to close when it shuts down.
    • It works as the manager/controller of the computer, like a traffic controller who coordinates all vehicles.
    • Examples: Windows, macOS, Linux, UNIX, Android, iOS, MS-DOS.
       USER
         тЖУ
    APPLICATION SOFTWARE
         тЖУ
    OPERATING SYSTEM
         тЖУ
       HARDWARE
    

    3.2.2 Role of the Operating System

    1. Interface between user and hardware: users give commands without knowing how the hardware works.
    2. Resource manager: shares and allocates CPU time, memory, files and I/O devices fairly among programs.
    3. Platform for application software: applications are built to run on an OS.
    4. Controls program execution: starts programs, stops them, and prevents one program from disturbing others.
    5. Provides security and error handling: controls who can use the computer and reports errors.
    6. Helps in running the computer efficiently: keeps the CPU and devices busy.

    3.2.3 Functions of an Operating System

    1. Processor (process) management

    • Keeps track of the processor and of each process (a running program).
    • Decides which process gets the CPU, and for how long (this is called scheduling).
    • Gives the CPU to a process and takes it back when the time is over or the process finishes.

    2. Memory management

    • Keeps track of which parts of main memory (RAM) are in use and which are free.
    • Allocates memory to a program when it starts and de-allocates it when it ends.
    • Uses virtual memory (part of the hard disk) when RAM is not enough.

    3. File management

    • Creates, names, stores, retrieves, copies, moves and deletes files and folders (directories).
    • Keeps track of the location of files on the disk and their access permissions.

    4. Device management (I/O management)

    • Controls input and output devices through device drivers.
    • Decides which program uses which device, and for how long.
    • Uses buffering and spooling to handle speed differences between the CPU and the devices.

    5. Security management

    • Protects data and programs from unauthorized access using user accounts, passwords and permissions.
    • Helps in protection from viruses with firewalls and updates.

    6. User interface (command interpretation)

    • Provides a way for users to communicate with the computer: command-line, menu-driven or graphical interface.

    7. Error detection and handling

    • Detects errors in hardware (memory, devices) and in programs, informs the user and takes suitable action.

    8. Other functions

    • Booting: loading the OS into memory when the computer starts.
    • Job accounting: records how much time and how many resources each user/program uses.
    • Coordination of other software: gives compilers, interpreters and other programs access to the system.
    • Networking: allows resources and files to be shared between computers.

    Booting

    Booting is the process of starting the computer and loading the operating system into main memory (RAM).

    Steps of booting

    1. Power is switched on; the CPU runs the start-up program stored in ROM (BIOS/UEFI).
    2. POST (Power-On Self-Test) checks the hardware (RAM, keyboard, disk, etc.).
    3. The BIOS/UEFI finds the boot device (hard disk/SSD/USB).
    4. The boot loader loads the OS kernel into RAM.
    5. The OS starts its services and shows the login screen/desktop.
    Cold BootingWarm Booting
    Starting a computer that is switched offRestarting a computer that is already on
    Done by pressing the power buttonDone by Restart option or Ctrl + Alt + Del
    Full POST and hardware check is doneUsually a shorter start-up

    Buffering and Spooling

    BufferingSpooling
    A buffer is a temporary memory area (in RAM) that holds data while it moves between two devices of different speedsSpooling (Simultaneous Peripheral Operations On-Line) stores jobs in a queue on disk so that a slow device can take them one by one
    Handles the speed mismatch between the CPU and I/O devicesAllows the CPU to continue other work while a slow device (such as a printer) works
    Example: video buffering while streamingExample: print queue when many documents are sent to one printer

    3.2.4 Operating System Terminology

    1. Multiprogramming

    Several programs are loaded into main memory at the same time. When one program waits for I/O, the CPU switches to another program. The aim is to keep the CPU busy and use it to the maximum.

    2. Multitasking

    The OS lets a user run more than one task/program at the same time (for example, listening to music while typing). The CPU switches between tasks so quickly that they appear to run simultaneously. Examples: Windows, Linux, macOS, Android.

    3. Multiprocessing

    A computer with two or more processors (CPUs/cores) works together, and programs or parts of programs run truly at the same time on different processors. It gives higher speed and reliability. Examples: UNIX, Linux, Windows Server.

    4. Distributed operating system

    Many separate computers connected by a network work together and appear to the user as one single system. Resources (processing power, storage) are shared and the work is distributed among the computers. Advantages: resource sharing, faster processing, reliability (if one computer fails, others continue).

    Difference between multiprogramming and multiprocessing

    MultiprogrammingMultiprocessing
    Many programs are kept in memory, but one CPU executes them by switchingTwo or more CPUs execute programs at the same time
    Programs run concurrently (taking turns)Programs run in parallel
    Aim: keep the CPU busyAim: increase speed and reliability
    CheaperMore expensive

    Other types of operating system (important for exams)

    TypeDescriptionExamples/Uses
    Batch processing OSSimilar jobs are collected into a batch and processed one after another without user interactionPayroll, billing, bank statement processing
    Time-sharing OSThe CPU time is divided into small time slices and given to many users in turn, so each user feels the computer is theirsUNIX, Linux, mainframe systems
    Real-time OS (RTOS)Must respond within a fixed deadline; a late answer is a failureMissile guidance, air traffic control, pacemakers, industrial robots
    Online processing OSData is entered and processed immediately through terminals connected to the computerATM, ticket reservation, online banking
    Network OSRuns on a server and provides services (files, printing, email) to client computersWindows Server, Linux server

    Difference between online processing and real-time processing

    Online ProcessingReal-Time Processing
    Transaction is processed as soon as it is enteredData is processed and a response is guaranteed within a strict time limit
    A short delay (a few seconds) is acceptableA delay is not acceptable and can cause serious failure
    Used in general business systemsUsed in critical control systems
    Example: bus/air ticket booking, ATMExample: rocket control, nuclear plant monitoring, traffic control

    Classification of operating systems by user interface

    CUI / CLI (Character/Command Line Interface)GUI (Graphical User Interface)
    User types text commandsUser uses icons, windows, menus and a pointer
    Commands must be rememberedNo need to remember commands
    Difficult for beginnersEasy and user-friendly
    Needs less memory and a slower processorNeeds more memory and a faster processor/graphics
    Little or no graphicsSupports graphics, colours, multimedia
    Examples: MS-DOS, Unix/Linux shell, Windows Command PromptExamples: Windows, macOS, Android, Ubuntu desktop

    Note: Older CUI systems such as MS-DOS were single-user and single-tasking. Modern command-line systems like Linux can also be multi-user and multitasking.

    Classification by number of users and tasks

    Single-user OSMulti-user OS
    Only one user can use the system at a timeMany users can use the system at the same time through terminals/network
    Used on personal computersUsed on servers, mainframes
    Examples: MS-DOS, Windows (desktop editions)Examples: UNIX, Linux, Windows Server
    Single-tasking OSMultitasking OS
    Runs only one program at a timeRuns more than one program at a time
    Example: MS-DOSExample: Windows, Linux, macOS

    3.3 Windows Operating System

    3.3.1 Introduction to GUI-based Operating System and its Features

    A Graphical User Interface (GUI) lets the user work by pointing and clicking on graphical objects (icons, menus, windows) instead of typing commands.

    Microsoft Windows is the most widely used GUI-based operating system for personal computers. It was developed by Microsoft. Windows 1.0 was released in 1985; popular versions include Windows 95, XP, 7, 10 and 11.

    Features of a GUI-based OS (Windows)

    • Easy to use; no need to remember commands (user-friendly)
    • Uses icons, windows, menus and a mouse pointer (WIMP)
    • Multitasking: many programs can run and be switched between
    • Multimedia support: pictures, audio, video
    • Plug and Play: automatically detects and sets up new hardware
    • Long file names, file/folder management with File Explorer
    • Built-in networking and Internet support
    • Security features: user accounts, passwords, firewall, antivirus
    • Customizable desktop (themes, backgrounds, display settings)
    • Supports a large number of application programs

    3.3.2 Windows Environment

    Desktop

    The desktop is the main screen that appears after Windows starts. It is the working area that contains icons, shortcuts, the taskbar and the background (wallpaper).

    Icons

    Icons are small pictures that represent files, folders, programs or devices. Clicking or double-clicking an icon opens it. A shortcut icon (with a small arrow) opens a program or file stored elsewhere.

    Taskbar

    The bar usually at the bottom of the screen. It contains:

    • Start button
    • Search box / pinned (quick launch) programs
    • Buttons of opened programs (to switch between them)
    • System tray / notification area (volume, network, battery) with date and time

    Start menu

    Opens by clicking the Start button (or pressing the Windows key). It gives access to installed programs, settings, files, search and the Power options (shut down, restart, sleep).

    Window

    A window is a rectangular area on the screen that shows a running program or the contents of a folder. Common parts: title bar, minimize / maximize (restore) / close buttons, menu bar or ribbon, address bar, scroll bars, status bar and the work area.

    Important icons and folders

    ItemPurpose
    This PC (formerly My Computer / Computer)Shows all drives (C:, D:), USB and other storage devices
    Documents, Pictures, Music, Videos, DownloadsDefault folders for saving personal files
    NetworkShows other computers and shared resources on the network
    Recycle BinKeeps deleted files so they can be restored; items remain until the bin is emptied
    Control Panel / SettingsUsed to change computer settings

    To restore a deleted file: open Recycle Bin тЖТ select the file тЖТ right-click тЖТ Restore.

    3.3.3 Working with Files and Folders

    A file stores data (document, picture, program). A folder (directory) is a container that stores files and other folders.

    TaskSteps
    Create a folderRight-click on empty space тЖТ New тЖТ Folder тЖТ type the name тЖТ press Enter (shortcut: Ctrl + Shift + N in File Explorer)
    Open a file/folderDouble-click it
    CopyRight-click тЖТ Copy (Ctrl + C) тЖТ open destination тЖТ right-click тЖТ Paste (Ctrl + V)
    Move (cut)Right-click тЖТ Cut (Ctrl + X) тЖТ open destination тЖТ Paste (Ctrl + V)
    RenameRight-click тЖТ Rename (or press F2) тЖТ type the new name тЖТ Enter
    DeleteSelect тЖТ press Delete (goes to the Recycle Bin)
    Delete permanentlySelect тЖТ press Shift + Delete (does not go to the Recycle Bin)
    View propertiesRight-click тЖТ Properties (or Alt + Enter): shows type, size, location, date created/modified
    Change viewIn File Explorer use the View option: icons, list, details, etc.
    SearchUse the search box in File Explorer or the taskbar and type the file name

    3.3.4 Customizing Windows

    Change the desktop background or theme: right-click on the desktop тЖТ Personalize тЖТ choose Background / Themes / Colors.

    Control Panel / Settings (commonly used options)

    OptionPurpose
    Date and TimeSet the system date, time and time zone
    DisplayChange screen resolution, brightness, text size
    Keyboard / MouseChange typing and pointer settings
    Programs and Features (Apps)Install/uninstall programs and change Windows features
    User AccountsCreate and manage users and passwords
    Devices and PrintersAdd or remove hardware, set the default printer
    Windows UpdateDownload and install updates to improve security and performance
    Administrative ToolsAdvanced tools for system management (services, event viewer)

    Menu names and steps vary slightly between Windows versions (for example, Windows 10/11 use Settings along with the Control Panel and This PC instead of Computer).

    3.3.5 Common Windows Keyboard Shortcuts

    ShortcutAction
    Ctrl + CCopy
    Ctrl + XCut
    Ctrl + VPaste
    Ctrl + ZUndo
    Ctrl + YRedo
    Ctrl + ASelect all
    Ctrl + SSave
    Ctrl + PPrint
    Ctrl + FFind
    F2Rename the selected item
    F5Refresh
    DeleteDelete (to the Recycle Bin)
    Shift + DeleteDelete permanently
    Alt + F4Close the current window/program
    Alt + TabSwitch between open programs
    Windows keyOpen the Start menu
    Windows + DShow the desktop
    Windows + EOpen File Explorer
    Windows + LLock the computer
    Ctrl + Shift + EscOpen Task Manager
    Ctrl + Alt + DelSecurity screen (lock, switch user, Task Manager)
    Home / EndGo to the beginning / end of the line
    Ctrl + Home / Ctrl + EndGo to the beginning / end of the document

    3.4 Open Source and Mobile Operating Systems

    3.4.1 Concept of Open Source Operating System

    An open source operating system is an OS whose source code is available to the public. Anyone can use, study, modify and redistribute it under a licence.

    Examples: Linux (Ubuntu, Fedora, Debian), FreeBSD, OpenBSD, Android (the open-source part, AOSP), ReactOS.

    Characteristics (freedoms of open source)

    • Free redistribution of the software
    • Source code is available
    • Users can modify it and share the modified version
    • No discrimination against persons, groups or fields of use
    • The licence must not restrict other software
    Open Source OSProprietary (Closed Source) OS
    Source code is available to everyoneSource code is kept secret by the owner
    Mostly free or low costUsually paid (licence needed)
    Can be modified by usersCannot be modified by users
    Community supportCompany support
    Example: LinuxExample: Windows, macOS, iOS

    Advantages

    • Free or low cost; no expensive licence
    • Can be customized according to need
    • Many people check the code, so bugs and security problems are found and fixed quickly
    • Not dependent on one company

    Disadvantages

    • Official technical support may be limited
    • Fewer commercial application programs for some systems
    • Can be harder for beginners
    • Hardware driver support may be limited

    3.4.2 UNIX

    UNIX is a powerful multi-user, multitasking and time-sharing operating system.

    • Developed at AT&T Bell Laboratories in 1969 by Ken Thompson, Dennis Ritchie and others.
    • First written in assembly language; rewritten in C in 1973, which made it portable (can run on different hardware).
    • Used on servers, workstations and supercomputers.
    • Many systems come from UNIX: Solaris, AIX, HP-UX, BSD (FreeBSD, OpenBSD), and macOS is based on a UNIX foundation.

    UNIX was originally a commercial (proprietary) system; the BSD family and Linux are the open-source members of the UNIX-like family.

    Features: multi-user, multitasking, portable, reliable and secure, strong networking, hierarchical file system, command-line (shell) interface with graphical options.

    3.4.3 Linux

    Linux is a free and open-source, UNIX-like operating system.

    • Created by Linus Torvalds in 1991 (University of Helsinki, Finland), who released the source code for developers worldwide to improve.
    • Strictly, Linux is the kernel (the core of the OS). Combined with other software it forms a complete OS called a Linux distribution (distro).
    • Popular distributions: Ubuntu, Debian, Fedora, Red Hat Enterprise Linux, Linux Mint, openSUSE.
    • Used widely in web servers, supercomputers, embedded devices and as the base of Android.

    Advantages of Linux: free of cost, secure and stable, open source and customizable, runs on old hardware, multi-user and multitasking, good networking, less affected by viruses. Disadvantages: fewer commercial software (games, some office tools), a learning curve for new users, hardware support may be limited in some cases.

    UNIXLinux
    Developed 1969 at AT&T Bell LabsCreated in 1991 by Linus Torvalds
    Mostly commercial/proprietary versionsFree and open source
    Runs mainly on specific vendor hardware (servers)Runs on almost all types of hardware
    Examples: Solaris, AIX, HP-UXExamples: Ubuntu, Fedora, Debian

    3.4.4 Concept of Mobile Operating System

    A mobile operating system is an OS specially designed for mobile devices such as smartphones, tablets, smartwatches and other handheld devices. It manages the hardware of the device and provides a platform for mobile apps.

    Features of a mobile OS

    • Touch-screen interface (taps, swipes, gestures)
    • Wireless connectivity: mobile data, Wi-Fi, Bluetooth, NFC
    • Built-in support for camera, GPS, sensors, speech recognition and multimedia
    • Power and battery management
    • App store for downloading apps
    • Security features: screen lock, fingerprint/face unlock, app permissions

    3.4.5 Types of Mobile Operating System

    Mobile OSDeveloperKey Facts
    AndroidGoogleBased on the Linux kernel; mostly open source; first commercial release in 2008; used by many manufacturers (Samsung, Xiaomi, etc.); apps from Google Play; the most widely used mobile OS
    iOSApple Inc.Closed source; released in 2007 with the first iPhone (originally called iPhone OS); only on Apple devices (iPhone, iPad); apps from the App Store; known for smooth performance and security
    HarmonyOSHuaweiIntroduced in 2019; used on Huawei phones, tablets and smart devices
    BlackBerry OSBlackBerry (RIM)Proprietary; was known for secure email and keyboards; now discontinued
    Windows Phone / Windows MobileMicrosoftLaunched as Windows Phone in 2010; discontinued
    SymbianNokiaPopular on older Nokia phones before smartphones; discontinued
    AndroidiOS
    Developed by GoogleDeveloped by Apple
    Mostly open sourceClosed source
    Runs on devices of many manufacturersRuns only on Apple devices
    Apps from Google Play (and other sources)Apps from the App Store
    Highly customizableLimited customization

    Quick Revision

    • Software: programs + data + documentation; hardware: physical parts.
    • Categories: system, utility, application, web-based, mobile apps.
    • System software: operating system, language translators (assembler, compiler, interpreter), device drivers.
    • Packaged software: ready-made for many users; tailored software: made for one organization.
    • OS: interface between user and hardware + resource manager.
    • Functions of OS: processor, memory, file, device management; security; user interface; error handling.
    • Booting: loading the OS into RAM. Cold = from power-off; warm = restart.
    • Spooling: job queue on disk (print queue). Buffering: temporary memory area between devices of different speeds.
    • Multiprogramming: many programs in memory, one CPU. Multiprocessing: many CPUs. Multitasking: many tasks at once for a user. Distributed: many computers appearing as one system.
    • GUI: icons and mouse; CUI: typed commands.
    • UNIX: 1969, Bell Labs. Linux: 1991, Linus Torvalds, open source.
    • Mobile OS: Android (Google, open source), iOS (Apple, closed source).

    Practice Questions

    Short Answer

    1. What is software? Differentiate between system software and application software.
    2. What is system software? Name its types.
    3. What is a utility program? Name and define any two utility programs.
    4. What is tailored software? What is packaged software? Give examples.
    5. What is a device driver? Why is it needed?
    6. Differentiate between a compiler and an interpreter.
    7. Differentiate between CUI and GUI with examples.
    8. Differentiate between multiprogramming and multiprocessing.
    9. Differentiate between online processing and real-time processing.
    10. Describe the terms spooling and buffering.
    11. Differentiate between cold booting and warm booting.
    12. Write short notes on: (a) Booting (b) Time-sharing OS (c) Open source software (d) Single-user and multi-user OS (e) Linux and UNIX (f) Windows operating system (g) Types of mobile OS.

    Long Answer

    1. What is an operating system? Explain the functions of an operating system.
    2. What is an operating system? Explain its different types with examples.
    3. Explain the categories of computer software in detail.
    4. Explain the components of the Windows desktop environment and how to work with files and folders.
    5. What is an open-source operating system? Explain its advantages and disadvantages with examples.

    End of Unit 3 notes.