Skip to content
NSCT Pakistan Test Preparation

Free NSCT demo test

15 questions across the computing core subjects, written in the NSCT style: realistic scenarios, short code, one best answer and no negative marking. Take about 15 minutes. No sign-up needed.

How the real paper works.

Free lectures & notes

A taste of the full course. Join the full course for every subject.

Operating Systems

Operating Systems Lecture 1: What an OS Does, Single-User and Multi-User Systems

Operating Systems

1. Operating system basics and system calls

• An OS manages hardware (CPU, memory, disks, devices) and gives programs services: process control, files, I/O, protection. • Dual mode: user mode for programs, kernel mode for the OS; a mode bit in the CPU tells them apart. • A system call (e.g. fork, read, write, open) is how a program asks the kernel for a service; it traps into kernel mode. • OS structures: simple/monolithic, layered, microkernel (small kernel, services in user space), modules. • Types: batch, time-sharing, real-time, distributed, multiprocessor. Common traps: Thinking a library call alone can touch hardware. Mixing up i