Operating System: Purpose and Main Functions

Operating System: Purpose and Main Functions. Foundational Computer Awareness explanations, examples and explained practice questions for banking and recruitment exam preparation.

By Akhilesh Saini

What you will learn

  • Why a computer needs an operating system.
  • The OS's roles in process, memory, file and device management.
  • User interfaces, permissions and basic security services.
  • The difference between a program stored on disk and one running as a process.

Why this topic matters

An OS is often called the intermediary between a user/applications and hardware. Exams also ask which OS function handles files, how multitasking works or what allocates memory to a running program. Understanding these roles helps answer all such questions.

What is an operating system?

An operating system (OS) is system software that manages computer resources and supplies services and interfaces used by applications and people. It makes a general-purpose computer practical: you can launch programs, access saved files, enter input, print documents and communicate over a network without personally controlling each hardware instruction.

The kernel is the central part of an OS responsible for core services such as scheduling execution, coordinating memory and handling hardware interactions. The full OS usually also includes supporting components and interfaces. Kernel and complete operating system are not identical terms.

The operating system coordinates processes, memory, files, devices, access control and networking for applications.
OS resource management map

Main OS functions

FunctionWhat the OS doesEveryday illustration
Process managementStarts, schedules, coordinates and ends running processesBrowser and calculator both respond
Memory managementAllocates/protects working memory and manages virtual-memory mechanismsSeveral apps keep active data in RAM
File-system managementOrganizes files, directories and operations on stored informationSave a document in a folder
Device / I/O managementCoordinates access to devices with help from driversScan a paper page; print a receipt
User interfaceProvides access through graphical and/or command interfacesOpen an app using a desktop or terminal
Security and access controlMaintains identities, permissions and isolation mechanismsDifferent accounts have different access
Networking servicesSupports communications and network connectionsRetrieve a permitted resource from a server
Error handling / accountingReports problems and may record or track resource useLog a failed service or application event

These functions differ in detail across platforms, but the general categories are stable.

Program versus process

A program is stored instructions; a process is an instance of a program being executed with resources assigned by the OS. The same program may run in more than one process. One process can also contain more than one thread (an execution sequence within the process). For this introductory track, remember: program = instructions; process = executing instance.

How multitasking works

With multitasking, the OS allows more than one task/process to make progress during the same period. On one CPU core it can switch rapidly between tasks (time-sharing), creating the experience of simultaneous activity. On a multicore machine, different tasks can also run literally at the same instant on different cores. Therefore multitasking does not automatically imply multiple processors.

Memory and virtual memory

Programs and their active data need working memory. The OS tracks allocation, helps prevent one process from accidentally using protected memory belonging to another, and can use virtual memory. Virtual memory gives processes managed address spaces, with some data potentially moved to backing storage as needed. It is not simply a synonym for extra RAM or an SSD. Detailed paging algorithms are outside this awareness lesson.

File and device access

When you save a report, the application requests an OS file operation. The OS and filesystem cooperate to store and retrieve its bytes. When you print, the OS coordinates a printing path, often using a queue and printer driver. Drivers were introduced in CA-03-01 and are covered in depth in CA-03-06.

Worked example: three tasks at a branch counter

An employee views an account statement, edits a document and starts a print job. The OS may allocate each running application's memory, schedule CPU work, allow the document to be saved in the user's permitted folder and queue printing. The applications perform the business tasks; the OS coordinates shared resources. Actual bank systems may add servers, access controls and audit procedures not shown in this simplified model.

Important terms

TermMeaning
OSOperating system
KernelCore operating-system component providing fundamental resource services
ProcessRunning instance of a program
ThreadExecution path within a process
MultitaskingSeveral tasks making progress over the same period
SchedulingChoosing when runnable work receives processor time
Virtual memoryOS/hardware-supported mechanism for managed virtual address spaces
File systemStructures and rules for organizing stored files and directories
PermissionRule specifying allowed access/action for a user or process

Common confusions

  • OS versus CPU: The OS is software; the CPU is hardware executing instructions.
  • Program versus process: An .exe or other program file can exist without currently running.
  • Multitasking versus multiprocessing: Multitasking can happen on one CPU/core; multiprocessing uses multiple processors/cores.
  • Memory management versus file management: Active memory allocation differs from organization of persistent files.
  • Security is not automatic perfection: An OS provides controls, but safe configuration, updates and user behavior remain important.

Fact to remember

An OS manages processes, memory, files, devices, user access and system services. A kernel is its central technical component; a process is a running program instance.

Quick revision

Question asks aboutOS area
Starting/scheduling programsProcess management
Allocating RAMMemory management
Creating/renaming foldersFile management
Handling printer requestsDevice/I/O management
Login and access rightsUser/security management
Connecting over a networkNetworking services

Practice questions — CA-03-02

Q1. Which software is chiefly responsible for managing a computer's memory and processes?
A. Operating system · B. PDF file · C. Scanner · D. Spreadsheet cell

Q2. What is a process?
A. A monitor showing an image · B. An executing instance of a program · C. A saved image file · D. An internet address

Q3. Which is a central component of an OS?
A. Mouse pad · B. Power cable · C. Kernel · D. Printer paper

Q4. An OS decides which runnable task receives CPU time. This is:
A. Printing · B. File compression · C. Optical scanning · D. Scheduling

Q5. Saving a document into Reports chiefly uses the OS's:
A. File management · B. Speaker volume · C. Display brightness · D. Clock display

Q6. Which function is associated with allocating RAM to an active program?
A. Slide design · B. Memory management · C. Image capture · D. Ink replenishment

Q7. What is correct about multitasking?
A. It needs a separate monitor for every task · B. It requires exactly two CPUs · C. Multiple tasks can make progress by scheduled switching on one core · D. It means the computer runs no applications

Q8. A thread is best described as:
A. A keyboard wire · B. A disk partition · C. A USB standard · D. An execution path within a process

Q9. Which OS service most directly handles a printer request?
A. Device / I/O management · B. Presentation animation · C. Web search · D. Spreadsheet chart design

Q10. Virtual memory is best described as:
A. A bigger physical RAM module · B. A managed address-space mechanism that may use backing storage · C. A type of printed paper · D. Always a separate external SSD

Q11. When two users have different file access rights, the OS is using:
A. A graphics filter · B. Text wrapping · C. Access control and permissions · D. Audio equalization

Q12. Which statement is true?
A. The OS and CPU are identical · B. A process must be the same as a folder · C. Multitasking guarantees four physical cores · D. An OS supports applications through common system services

Answers and explanations — CA-03-02

QCorrect answerExplanation
1A. Operating systemMemory allocation and process scheduling are core operating-system responsibilities.
2B. An executing instance of a programA program is stored instructions; a process is a running instance with execution context and resources.
3C. KernelThe kernel provides core services for processor scheduling, memory and hardware interactions.
4D. SchedulingScheduling selects work to run on the processor, part of process management.
5A. File managementThe file-system and OS organize persistent files and directories and service save/open requests.
6B. Memory managementWorking-memory allocation and protection are memory-management tasks.
7C. Multiple tasks can make progress by scheduled switching on one coreTime-slicing permits several tasks to progress even if a single core executes only one task at a given instant.
8D. An execution path within a processThreads are schedulable execution sequences within processes, not hardware cables or storage layouts.
9A. Device / I/O managementThe OS coordinates input/output with devices and may invoke a driver and a printer queue.
10B. A managed address-space mechanism that may use backing storageVirtual memory organizes process address spaces and can use storage backing; it is not synonymous with a physical memory module.
11C. Access control and permissionsPermissions and identity checks help prevent unauthorized access to stored resources.
12D. An OS supports applications through common system servicesThe OS is software supporting execution and hardware access, while the CPU is physical processing hardware.