UNIHIVE

Study Hub UNIPORT CSC 394

CSC 394 · Operating Systems

What an operating system is, and its types

The OS as resource manager and extended machine, its functions, and batch, multiprogramming, time-sharing, real-time, distributed, network and mobile systems.

Our notes

2 min read

What an OS is

An operating system (OS) is the software that manages a computer's hardware and provides services to programs and users. Two views:

  • Resource manager: shares the CPU, memory, disks and devices fairly and efficiently among programs.
  • Extended (virtual) machine: hides messy hardware details behind simple services (open a file instead of driving a disk controller).

Examples: Windows, Linux, macOS, UNIX, Android (Linux kernel), iOS.

Functions of an OS

  1. Process management: create, schedule and end programs; synchronisation and communication.
  2. Memory management: give memory to programs, protect it, take it back.
  3. File management: create, delete, organise files and directories; access control.
  4. Device (I/O) management: drivers, buffering, spooling.
  5. Secondary storage management: free space, disk scheduling.
  6. Security and protection: logins, permissions.
  7. User interface: command line (shell) or graphical (GUI).
  8. Accounting and error handling.

Types of operating systems

TypeIdeaExample
Batchjobs grouped and run one after another with no user interactionearly mainframes, payroll runs
Multiprogrammingseveral programs in memory; when one waits for I/O, the CPU runs anotherkeeps the CPU busy
Time-sharing (multitasking)CPU switches between users/programs so fast each seems to have its own machine (time slices)UNIX, modern desktops
Multiprocessingtwo or more CPUs share memory and work togethermulti-core PCs, servers
Real-timemust respond within strict time limits; hard (missing a deadline is failure: airbag, pacemaker) or soft (video streaming)VxWorks, FreeRTOS
Distributedmany networked computers appear as one systemcloud clusters
Network OSshares files and printers over a networkWindows Server
Mobile / embeddedfor phones and devices, saves batteryAndroid, iOS

Key terms

  • Kernel: the core of the OS, always in memory, running in privileged kernel mode; user programs run in user mode and must ask the kernel (through system calls) to touch hardware.
  • Spooling (simultaneous peripheral operation on-line): output for a slow device (printer) is stored on disk and printed in turn.
  • Booting: the firmware (BIOS/UEFI) loads a bootstrap loader, which loads the kernel.

History in brief

No OS (1940s, programs entered by hand) → batch systems (1950s) → multiprogramming and time-sharing (1960s; IBM OS/360, MULTICS) → UNIX (1969, Bell Labs) → personal computers (MS-DOS 1981, Windows, Macintosh) → Linux (1991) → mobile OS (Android, iOS) and cloud.

Exams usually ask: define an OS (two views); list and explain its functions; compare batch, multiprogramming, time-sharing and real-time; hard vs soft real-time; spooling; kernel vs user mode.

Common mistake: mixing up multiprogramming (several programs in memory to keep one CPU busy) with multiprocessing (several CPUs).

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All CSC 394 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.