Operating Systems · অপারেটিং সিস্টেম
Processes, scheduling, memory, deadlock and file systems — how an OS runs your programs.
- Past MCQs
- 106
- Written
- 158
- Chapters
- 7
How Operating Systems is asked · পরীক্ষায় যেভাবে আসে
Our 155 papers that ask Operating Systems (2011–2026) hold 264 of its questions; Processes & Threads alone makes up 28.8% of them. It makes up 5.6% of the questions in our M.Sc. admission (CSE and ICT) papers, against 3% in ICT teaching posts (NTRCA).
- Papers that ask it
- 155
- Years covered
- 2011–2026
- MCQ / written
- 106 / 158
Most asked chapters · বেশি আসা অধ্যায়
Each chapter's share of the 264 past-exam questions
- Processes & Threads28.8%
- OS Basics & Types18.6%
- Memory Management17.8%
- File Systems & I/O17.4%
- CPU Scheduling7.2%
- Synchronization & Deadlock7.2%
Share of each exam's questions · পরীক্ষাভিত্তিক অংশ
Operating Systems questions in each exam's papers, and their share of that exam's questions
- M.Sc. admission (CSE and ICT) of 177105.6%
- BCS (ICT and CSE cadre) of 492244.9%
- Government IT officer posts of 2,337974.2%
- Bank IT jobs of 2,388974.1%
- BPSC non-cadre IT posts of 716263.6%
- ICT teaching posts (NTRCA) of 30093.0%
- Defence organisations' IT posts of 3712.7%
Counted from our own past papers: every past-exam MCQ and written question, each filed under one syllabus chapter. Practice questions and questions held for live tests are not counted; no answer is shown here.
Syllabus by chapter · অধ্যায়ভিত্তিক সিলেবাস
- Processes & Threads · 148 questions
- OS Fundamentals, CPU Scheduling, Page Replacement, Multitasking vs Multiprocessing; File System Implementation, Multiprogramming on a Uniprocessor System, Necessary Conditions for Deadlock, Comparing FCFS and SJF Scheduling for Multiple Processes, Deadlock & Coffman Conditions
- CPU Scheduling · 81 questions
- Average Turnaround and Waiting Time — FCFS vs Round Robin, at and cron Commands, Starvation in SJF and Starvation-Free Scheduling, Round Robin Scheduling (Numerical), SJF Waiting & Turnaround Time, SJF — average waiting time (worked example)
- Synchronization & Deadlock · 99 questions
- Necessary Conditions for Deadlock (Coffman Conditions), Deadlock Handling (Detection/Prevention/Avoidance/Recovery), Circular Wait Condition, The Four Necessary Conditions for Deadlock, Banker's Algorithm, AI, Deadlock Conditions, Boolean Simplification, Logical Equivalence
- Memory Management · 159 questions
- Paging vs Segmentation, Thrashing, Page Replacement - LRU Algorithm, Swapping & Fragmentation, Why Virtual Memory Is Needed, FIFO Page Replacement & Page Faults
- File Systems & I/O · 107 questions
- File Access Categories in Linux, Counting Files by Extension in Linux, File Move, Directory Change, and Line-Based Search Commands, File ownership & permission commands (chown, chmod), File Viewing, Line Extraction & Permission Commands, RAID Levels
- OS Basics & Types · 126 questions
- DOS and Types of Operating System, Common Linux Administrative Commands, অপারেটিং সিস্টেমের প্রধান কাজ ও জনপ্রিয় উদাহরণ, Basic Linux Commands, Common Linux Commands, Open Source Operating Systems
- Mixed Topics · 40 questions
- Command-Line Interface (CLI)
Loading sample questions…
Start learning: Operating System Overview and Types · অপারেটিং সিস্টেম পরিচিতি ও প্রকারভেদ
Operating System Overview and Types
It is nine in the morning in a government office in Dhaka. A clerk finishes a report and presses Ctrl+S. The file is saved, yet nothing else stops: the music in another tab keeps playing, a download carries on in the background, and the shared printer is busy with a colleague's job. The clerk never told the disk where to put the report. Nobody told the processor to give a few milliseconds to the music, a few to the download, and then go back to Word. All of it happens at once, and nothing gets overwritten or lost.
Something is doing this work. It sits between the programs and the machine, and it is the first big program to start when the computer is switched on. It is the operating system, and this chapter is about what it is, what it does, which ones exist and how they are classified. Examiners love the topic: "Which of these is not an OS?", "Which OS is used for real-time systems?", "Difference between multitasking and multiprocessing", "Functions of an operating system".
By the end of the chapter you'll be able to define an OS from both of its classic viewpoints and list its functions with an example for each. You'll tell system software from application software and place utilities and translators correctly. You'll recognise the main OS families, CLI from GUI, open source from proprietary. You'll explain batch, multiprogramming and time-sharing and work out CPU utilisation with the formula 1 − pⁿ. You'll tell multitasking from multiprocessing, tightly from loosely coupled, a distributed OS from a network OS. And you'll say what makes a real-time, embedded or mobile OS different from the one on your desk.
We go in seven parts, from the plainest idea to the most specialised: what an OS is; what it does; where it fits among the other kinds of software; the families, and the way we talk to them; how one CPU serves many jobs; how many CPUs and many computers work together; and the special-purpose systems, real-time, embedded and mobile.
:::why ids=022-1,036-10,080-26,090-22,093-26,109-19,122-27,132-14a,136-10,bpsc261029-17,bpsc261029-59,cb260103-40,spcbl261106-2,wo00055,wo00124,wo00135,wo00209,wo00352,wo00611,wo00898,wo01343,wo01683,wo01755,wo01804,wo01963,wo02046,wo02118,wo02301
Exams ask this chapter in two ways. One-mark MCQs test a single fact: which of these is an OS, which one suits real-time work, which is embedded, which is open source, what a tightly coupled system is, what an OS writes when a process fails, which key makes a new folder in Windows. Written questions ask you to explain: the functions of an OS, an OS against an application program, DOS, open source against proprietary, multitasking against multiprocessing, how multiprogramming works on one CPU, what a CLI is. Every one of these ideas is taught below, together with its reason.
:::
:::hook from=132-14a
Answer: (d) None of them. In a real-time system (aircraft control, a factory robot, a pacemaker) a correct result is not enough: it has to arrive within a fixed time. That needs a real-time operating system (RTOS) such as VxWorks, QNX or FreeRTOS, whose scheduling can promise when a task will finish. Windows and ordinary Unix are general-purpose systems: fast on average, but with no guaranteed deadline for any single task. Oracle is not an operating system at all; it is a database. The trap is ticking a familiar name. Part 7 explains what "real-time" really asks of an OS.
:::
Part 1: What an operating system is
A computer with nothing in between
Picture the clerk's computer with no operating system at all. Every program, Word, the music player, the download manager, would have to carry its own code for driving the disk: which track, which sector, how long to wait for the motor. Three things would go wrong at once.
The first is plain waste. Thousands of programs would each rewrite the same disk code, the same screen code, the same printer code. The second is collision. Two programs would both believe the printer is theirs, and their pages would come out interleaved; two programs would both write to the same place on the disk, and one would destroy the other's data. The third is that nothing would stop a faulty program. One wrong instruction could overwrite another program's memory, or the code that runs the machine itself, and the whole computer would hang.
Think of a railway station with no station master. Every driver decides for himself when to roll into platform 3. Now put a station master in the office. He decides which train uses which platform and when, he takes the platform back when the train has gone, and he tells passengers only "Platform 3, 10:40"; they never need to know how the signals and points work. That one person does two jobs, and an operating system does exactly the same two.
The definition, and its two faces
An operating system (OS) is the system software that manages the hardware and software resources of a computer and gives programs a simple, safe way to use them. Textbooks describe it from two sides, and exams ask for both, so learn them together.
The first is the resource manager view, the view from the inside. The CPU's time, the memory, the disk and the devices are limited, and many programs want them at once. The OS is the station master: it decides who gets what, for how long, takes it back when the job is over, and keeps count. You will also see the same view called the resource allocator. Silberschatz adds a third phrase, control program: the OS supervises the running of user programs so that mistakes and misuse do not harm the machine.
The second is the extended machine view, the view from the program. Raw hardware is awkward: to read a file you would have to write numbers into a disk controller's registers, wait for a signal, and check for errors. The OS covers all that with clean ideas, a file, a folder, a window, a process, and the programmer simply says "save this" or writes printf("Hello"). It is the restaurant menu: you ask for chicken biryani and never walk into the kitchen. This view is also called the virtual machine view, because the OS turns the real, awkward machine into a nicer imaginary one.
The two views are not rivals. One is about sharing and protecting, the other is about hiding and simplifying, and a real OS does both all the time.
In one line: an OS manages the resources (the station master's job) and hides the hardware (the menu's job).
Where it sits: the layers
Now let's place the OS in the whole computer. A computer is built in layers, and each layer uses only the layer just below it.
:::figure caption="A computer in layers: each layer uses only the layer just below it" alt="Five layers from top to bottom: users; application software such as a browser, Word and a banking app; the operating system, drawn as a frame around the shell and utilities and the kernel, with system calls entering the frame; and hardware (CPU, memory, disk, I/O devices) at the bottom." maxw=440
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 360 244" width="360" height="244"><rect x="8" y="6" width="344" height="30" rx="3" class="f-line"/><text x="180" y="26" text-anchor="middle" font-size="12" class="f-ink">Users</text><rect x="8" y="44" width="344" height="30" rx="3" class="f-net2"/><text x="180" y="64" text-anchor="middle" font-size="12" class="f-on">Application software: browser, Word, banking app</text><rect x="4" y="84" width="352" height="112" rx="6" class="f-hostline"/><text x="14" y="102" text-anchor="start" font-size="12" font-weight="700" class="f-host">Operating system</text><text x="348" y="102" text-anchor="end" font-size="11.5" class="f-mute">system calls enter here</text><rect x="14" y="110" width="332" height="34" rx="3" class="f-net2"/><text x="180" y="131" text-anchor="middle" font-size="12" class="f-on">Shell and utilities: take your commands</text><rect x="14" y="152" width="332" height="34" rx="3" class="f-net"/><text x="180" y="173" text-anchor="middle" font-size="12" class="f-on">Kernel: CPU, memory, files, devices</text><rect x="8" y="206" width="344" height="30" rx="3" class="f-line"/><text x="180" y="226" text-anchor="middle" font-size="12" class="f-ink">Hardware: CPU, memory, disk, I/O devices</text></svg>
:::
The user works with application programs: a browser, Word, a banking app. An application never touches the hardware directly; it asks the operating system, through a doorway called a system call. The OS itself has two parts you will hear about again and again. The kernel is the core: it stays in memory from start-up to shutdown and does the real work of managing the CPU, memory, files and devices.
The shell is the part that takes your commands, typed or clicked, and hands them to the kernel. To make the "ask politely" rule hold, the CPU itself runs the kernel in a privileged mode and ordinary programs in a restricted one, so a program simply cannot reach the disk on its own. And the kernel is the first big program to run after you switch on: small firmware already in the machine loads it into memory, a step called booting.
Notice what the OS is not. It is not the hardware, and it is not Word or the browser. It is the layer in between.
:::steps title="Worked example: one Ctrl+S, from the clerk's finger to the disk"
Let's follow the clerk's save through the layers, and name the job of each step.
- The application asks. Word has no code for the disk. It makes a system call that says, in effect, "write these bytes to this file".
- The CPU enters the kernel. The call switches the CPU from the restricted mode of programs to the privileged mode of the kernel. Word cannot jump in on its own; the system call is the only door.
- The file system translates. The kernel turns the file name into disk blocks. It looks the folder up, checks that this clerk may write here (protection), and finds free space for the new bytes.
- The driver speaks to the disk. The kernel hands the block numbers to the disk's device driver, the small piece of code that knows this particular disk's commands.
- The CPU is not left waiting. A disk is slow compared with a processor. The kernel puts Word to sleep for those moments and gives the CPU to the music player (resource management).
- The disk finishes and interrupts. It sends a signal called an interrupt. The kernel wakes Word, the call returns "done", and the title bar shows "Saved".
Word wrote one line, and four helpers did the work. Hiding the disk is the extended machine; sharing the CPU while Word waited and checking the permission are the resource manager at work.
:::
Two slips are common here. The first is to call the OS "the desktop with the icons". The icons are only one way of talking to it; the OS is everything underneath, and a server may have no icons at all. The second is to treat the kernel and the OS as the same thing. The kernel is the core of the OS, but the OS also includes the shell, drivers, the file system and the utilities around it.
In one line: applications ask, the kernel decides and drives the hardware, and the OS is the whole layer between them.
:::check id=o1-views
A new programmer says, "I write one line to save a file and never think about disk heads or sectors; the OS hides all that." Which view of the operating system is she describing?
- The extended machine (virtual machine) view
- The resource manager view
- The batch processing view
- The view of the OS as hardware
Hiding the awkward hardware behind simple services such as "save this file" is the extended machine view. The resource manager view is about sharing the CPU, memory and devices fairly among programs. "Batch" is a way of running jobs, not a view of what an OS is, and the OS is software, not hardware.
:::
Read the whole lesson free with an account · পুরো পাঠ পড়তে বিনামূল্যে সাইন আপ করুন
All 22 lessons · সব পাঠ
- Operating System Overview and Types · অপারেটিং সিস্টেম পরিচিতি ও প্রকারভেদ
- Multicore and Multiprocessor Systems: Parallel Hardware from the OS's Side · মাল্টিকোর ও মাল্টিপ্রসেসর সিস্টেম: অপারেটিং সিস্টেমের চোখে সমান্তরাল হার্ডওয়্যার
- OS Structure: Kernel, System Calls and Booting · অপারেটিং সিস্টেমের গঠন: কার্নেল, সিস্টেম কল ও বুটিং
- Processes, Threads and Process States · প্রসেস, থ্রেড এবং প্রসেস স্টেট
- Process Creation and Inter-Process Communication · প্রসেস তৈরি ও ইন্টার-প্রসেস কমিউনিকেশন
- CPU Scheduling Algorithms · সিপিইউ শিডিউলিং অ্যালগরিদম
- Scheduling in Practice: Quantum, Multilevel Queues, Multiprocessor and Real-Time · বাস্তব শিডিউলিং: quantum, মাল্টিলেভেল কিউ, মাল্টিপ্রসেসর ও রিয়েল-টাইম
- Process Synchronization: Critical Section, Semaphores and Monitors · প্রসেস সিনক্রোনাইজেশন: ক্রিটিক্যাল সেকশন, সেমাফোর ও মনিটর
- Classic Synchronization Problems and Language Support · ক্লাসিক সিনক্রোনাইজেশন সমস্যা ও ভাষার সহায়তা
- Deadlock: Conditions and Handling · ডেডলক: শর্ত ও মোকাবিলা
- The Banker's Algorithm and Deadlock Arithmetic · ব্যাংকার্স অ্যালগরিদম ও ডেডলকের অঙ্ক
- Memory Management: Partitions and Paging · মেমরি ব্যবস্থাপনা: পার্টিশন ও পেজিং
- Page Tables, TLB and Segmentation · পেজ টেবিল, TLB ও সেগমেন্টেশন
- File Systems and Disk Scheduling · ফাইল সিস্টেম ও ডিস্ক শিডিউলিং
- File System Internals, Permissions and the I/O Subsystem · ফাইল সিস্টেমের ভেতরের কথা, পারমিশন ও I/O সাবসিস্টেম
- Virtual Memory and Demand Paging · ভার্চুয়াল মেমরি ও ডিমান্ড পেজিং
- Page Replacement, Frame Allocation and Thrashing · পেজ রিপ্লেসমেন্ট, ফ্রেম বণ্টন ও থ্র্যাশিং
- Linux and Unix: The Command Line, Paths and Files · লিনাক্স ও ইউনিক্স: কমান্ড লাইন, পাথ ও ফাইল
- Linux and Unix: Permissions, Owners and umask · লিনাক্স ও ইউনিক্স: পারমিশন, মালিকানা ও umask
- Linux: Searching, Pipes, Processes and Scheduling · লিনাক্স: খোঁজা, Pipe, Process ও Scheduling
- Linux: Shell Scripts and Administration · লিনাক্স: Shell Script ও Administration
- Revision sheet: Operating Systems · রিভিশন শিট: অপারেটিং সিস্টেম