Operating System Tutorial Last Updated : 31 Jan, 2025 Comments Improve Suggest changes Like Article Like Report An Operating System(OS) is a software that manages and handles hardware and software resources of a computing device. Responsible for managing and controlling all the activities and sharing of computer resources among different running applications.A low-level Software that includes all the basic functions like processor management, memory management, file management, etc.It mainly acts a government for your system that has different departments to manage different resources.Examples are Linux, Unix, Windows 11, MS DOS, Android, macOS and iOS. Basics : IntroductionTypes of OSFunctions of OS System Initialization Kernel in OSSystem Call Privileged Instructions Process Scheduling : Process Introduction Process Creation and DeletionStates of a Process Process Table and Control BlockTypes of Processes in Process TableProcess Management Introduction Process SchedulerCPU Scheduling AlgorithmsPreemptive vs Non-PreemptiveTime spent in Context SwitchDispatcher vs schedulerStarvation and Aging in Operating Systems >> Quiz on CPU Scheduling Process SynchronizationInter Process CommunicationIntroduction to Process Synchronization Critical SectionPeterson’s Algorithm in Process SynchronizationLock variable synchronization mechanismSemaphores in operating systemClassical IPC Problems Communication using signals in CMutex vs. SemaphoreMonitors for Process Synchronization Dekker’s algorithmBakery AlgorithmMutex lock for Linux Thread SynchronizationPriority Inversion >> Quiz on Process Management in OS Deadlock : Deadlock IntroductionDeadlock Prevention And AvoidanceDeadlock Detection And RecoveryBanker’s AlgorithmDeadlock, Starvation, and LivelockResource Allocation Graph (RAG)Methods of resource allocation to processes by operating systemProgram for Deadlock free condition in Operating SystemDeadlock detection in Distributed systemsTechniques used in centralized approach of deadlock detection in distributed systems >> Quiz on Deadlock Multithreading: Operating System | ThreadThreads and its typesOperating System | User Level thread Vs Kernel Level threadProcess-based and Thread-based MultitaskingMulti threading modelsBenefits of MultithreadingOperating System | Remote Procedure call (RPC) Memory Management : Introduction to memory and memory unitsMemory Management in Operating SystemBuddy System: Memory allocation techniquePagingSegmentationVirtual MemoryMemory InterleavingOperating system based VirtualizationSwap SpacePage Fault HandlingMemory Segmentation in 8086 MicroprocessorProgram for Next Fit algorithm in Memory ManagementOverlays in Memory ManagementBelady’s AnomalyPage Replacement Algorithms Second Chance (or Clock) Page Replacement PolicyAllocating kernel memory (buddy system and slab system)Static and Dynamic Libraries | Set 1Working with Shared Libraries | Set 1Named Pipe or FIFO with example C programTracing memory usage in Linux >> Quiz on Memory Management Disk Management: File SystemsUnix File SystemImplementing Directory Management using Shell ScriptFile Directory | Path NameStructures of DirectoryFile Allocation MethodsFile Access MethodsSecondary memorySecondary memory – Hard disk driveDisk Scheduling AlgorithmsProgram for SSTF disk scheduling algorithmWhat exactly Spooling is all about?Difference between Spooling and BufferingFree space management >> Quiz on Input Output Systems Misc Computer Memory Introduction to UNIX System MicrokernelKernel I/O Subsystem (I/O System)Important Linux Commands (leave, diff, cal, ncal, locate and ln)Process states and Transitions in a UNIX ProcessIntroduction to Linux Shell and Shell Scripting‘crontab’ in Linux with Examplesindepth and maxdepth in Linux find() command for limiting search to a specific directory.Real time systemsTasks in Real Time systemsMonolithic Kernel and key differences from Microkernel Get/Set process resource limits in CDual Mode operations in OS Types of Operating System Batch OS (e.g. Transactions Process, Payroll System, etc.)Multi-programmed OS(e.g. Windows, UNIX, macOS, etc.)Timesharing OS(e.g. Multics, Linux, etc.)Real-Time OS(e.g. PSOS, VRTX, etc.)Distributed OS(e.g. LOCUS, Solaris, etc.) Operating System Functions Memory and processor ManagementNetwork ManagementSecurity ManagementFile ManagementError DetectionJob AccountingLast Minute Notes (LMNs) | Operating SystemsCommonly Asked Operating Systems Interview Questions‘Quizzes’ on Operating Systems !‘Practice Problems’ on Operating Systems ! Comment More infoAdvertise with us Next Article Operating System Interview Questions K kartik Follow Improve Article Tags : Operating Systems GATE CS Similar Reads GATE CS Notes The Graduate Aptitude Test in Engineering (GATE) is a national-level exam in India, jointly conducted by the Indian Institute of Science (IISc) and seven Indian Institutes of Technology (IITs) on a rotational basis. GATE 2026 is scheduled to be organized by IIT Guwahati. This computer-based exam ass 15+ min read Benefits of writing GATE exam The GATE exam is created to test the knowledge and understanding of undergraduate students in various subjects of engineering and science. It is conducted by IISc and seven IITâs jointly on behalf of the National Coordination Board (GATE) and is basically a gateway for post-graduate admissions in In 4 min read How to Use GeeksforGeeks to Prepare for GATE CS? Everyone knows that GATE is one of the very popular, versatile, and standard exams in India as it leverages you with numerous career benefits whether it be about getting admissions to the countryâs top colleges like IITs, NITs, etc. for Post-Graduation or direct recruitment in Indian PSUs. Some of t 6 min read GATE 2025 Syllabus For CSE (Computer Science & Engineering) GATE Exam 2025 Syllabus for CSE - GATE stands for Graduate Aptitude Test in Engineering, an entrance exam conducted each year for getting admission into the most prestigious institutes across the country including IISc Bengaluru, IITs, NITs, IIITs and many others. The GATE authority (IIT Roorkee for 7 min read DS & C ProgrammingData Structures TutorialData structures are the fundamental building blocks of computer programming. They define how data is organized, stored, and manipulated within a program. Understanding data structures is very important for developing efficient and effective algorithms. What is Data Structure?A data structure is a st 2 min read Last Minute Notes - Data Structures using CData structures are ways to organize and store data so it can be used efficiently. They are essential in computer science for managing and processing information in programs. Common types of data structures include arrays, linked lists, stacks, queues, trees, and graphs. Each structure is designed f 14 min read AlgorithmsAlgorithms TutorialAlgorithm is a step-by-step procedure for solving a problem or accomplishing a task. In the context of data structures and algorithms, it is a set of well-defined instructions for performing a specific computational task. Algorithms are fundamental to computer science and play a very important role 1 min read LMNs- AlgorithmsAn algorithm is a step-by-step procedure or set of rules to solve a specific problem. It is a logical sequence of instructions designed to achieve a desired output for given inputs.Analysis of Algorithm 1) Worst Case Analysis (Usually Done): In the worst case analysis, we calculate upper bound on ru 10 min read Database Management SystemDBMS Tutorial â Learn Database Management SystemDatabase Management System (DBMS) is a software used to manage data from a database. A database is a structured collection of data that is stored in an electronic device. The data can be text, video, image or any other format.A relational database stores data in the form of tables and a NoSQL databa 7 min read Database Management System - GATE CSE Previous Year QuestionsThe Database Management Systems (DBMS) subject has high importance in GATE CSE exam because:large number of questions nearly 8-10% of the total papersignificant weightage (~8-10 marks) across multiple years Below is the marks distribution table: YearApprox. Marks from DBMSNumber of QuestionsDifficul 2 min read Last Minute Notes - DBMSDatabase Management System is an organized collection of interrelated data that helps in accessing data quickly, along with efficient insertion, and deletion of data into the DBMS. DBMS organizes data in the form of tables, schemas, records, etc. DBMS over File System (Limitations of File System)The 15+ min read Operating SystemOperating System TutorialAn Operating System(OS) is a software that manages and handles hardware and software resources of a computing device. Responsible for managing and controlling all the activities and sharing of computer resources among different running applications.A low-level Software that includes all the basic fu 4 min read Operating System Interview QuestionsAn operating system acts as a GUI between the user and the computer system. In other words, an OS acts as an intermediary between the user and the computer hardware, managing resources such as memory, processing power, and input/output operations. Here some examples of popular operating systems incl 15+ min read Last Minute Notes â Operating SystemsAn Operating System (OS) is a system software that manages computer hardware, software resources, and provides common services for computer programs. It acts as an interface between the user and the computer hardware.Table of Content Types of Operating System (OS): ThreadsProcessCPU Scheduling Algor 15+ min read Computer NetworksComputer Network TutorialA Computer Network is a system where two or more devices are linked together to share data, resources and information. These networks can range from simple setups, like connecting two devices in your home, to massive global systems, like the Internet. Below are the main components of a computer netw 7 min read Computer Networks - GATE CSE Previous Year QuestionsThe Computer Networks(CN) subject has high importance in GATE CSE exam because:large number of questions nearly 7-9% of the total papersignificant weightage (7-9 marks) across multiple years The table below shows marks distribution and number of questions of Computer Networks for the past four years 2 min read Last Minute Notes for Computer NetworksComputer Networks is an important subject in the GATE Computer Science syllabus. It encompasses fundamental concepts like Network Models, Routing Algorithms, Congestion Control, TCP/IP Protocol Suite, and Network Security. These topics are essential for understanding how data is transmitted, managed 14 min read Digital Logic and DesignDigital Electronics and Logic Design TutorialsDigital Electronics and Logic Design are key concepts in both electronics and computer science. Digital systems are at the core of everything from basic devices like calculators to advanced computing systems. Digital systems use binary numbers (0s and 1s) to represent and process information.Logic g 4 min read LMN - Digital ElectronicsDigital electronics deals with systems that use digital signals, represented as 0s and 1s, to process information. It is the backbone of modern devices like computers, smartphones, and calculators. Unlike analog electronics, which works with continuous signals, digital electronics offers higher accu 14 min read Like