Practice Question
Duration: 2 min
This video lesson is available to enrolled students.
Inside: a video lesson and guided study material.
Module outline
- Quantitative Aptitude: Number System, Percentage, Profit and Loss, Ratio and Proportion (Ratios), Average, Time and Work, Speed Time and Distance, Simple Interest and Compound Interest, Mixture and Alligation, Data Interpretation, Permutation and Combination, Probability, Logarithm, Powers and Exponents (Surds and Indices), Age Problems, Divisibility Rules, Partnership, HCF LCM, Algebra, Pipe and Cistern
- Logical Reasoning: Series (Number and Letter Series) (Numerical Relations and Reasoning), Analogy, Coding Decoding, Blood Relations, Directions (Direction Test), Syllogisms, Logical Sequence Of Words, Data Sufficiency, Seating Arrangements, Puzzle Solving (Puzzles), Calendar, Clock, Cubes & Dices, Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Data Arrangement
- English Language: Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions), Sentence Correction (Error Correction), Sentence Completion (Fill in the blanks), Vocabulary, Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing), Active Passive Voice (Voice), Direct and Indirect Speech, Cloze Test (Cloze Passage), Tenses, Subject Verb Agreement (Verb Noun Agreement), Preposition, Articles, Conjunction, Adverb
- Written English Test: English Writing Ability
- Coding: Coding Questions by Yash Sir, C Programming by Yash Sir, Programming in C++, Java, Python for Placements by Yash Sir
- Communication Round: Communication Assessment
- DBMS (Technical Interview): Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, Normalization (1NF - BCNF), Decomposition Properties & 4NF, File Organization & Indexing, Relational Algebra, Relational Calculus, Transaction Management, Concurrency Control, Database Recovery, ORDBMS, Database Security & Authorization, Query Processing & Optimization, Enhanced Data Models, Big Data Systems, NoSQL, Data Warehousing & Mining
- SQL (Technical Interview): SQL
- Operating Systems (Technical Interview): Introduction to OS, Process Management, CPU Scheduling, Process Synchronization, Deadlock, Threads & Process Creation, Memory Management, Virtual Memory, Disc Scheduling, File Management, Windows OS, Linux OS, Security, Distributed Systems, Virtual Machines
- Computer Networks (Technical Interview): Introduction to CN, Data Communication, DLL: Access Control, DLL: Flow Control, DLL: Error Control, DLL: Framing, Data Link Layer - Ethernet, Net Layer: IPv4 & Proto, Net Layer: IP Addressing, Net Layer:Routing Protocol, Transport Layer Services, TL: Congestion & UDP, Application Layer, Hardware basics, Network Security, Mobile Technology, Cloud Computing and IoT, Cyber and Info Security
- OOPs (Technical Interview): Object Oriented Programming (OOPS)
- HR Interview: MR & HR Interview Preparation
AI summary & chapters
AI Summary
An AI-generated summary of this video lecture.
The video features an instructor solving a classic operating system problem regarding process states. The problem asks for the minimum and maximum number of processes that can be in the ready, run, and blocked states given a system with P CPUs and n processes, assuming p<<n. The instructor systematically fills a table to answer this specific question. For the Ready state, the minimum is 0 and the maximum is n-P. For the Run state, the minimum is 0 and the maximum is P. For the Block state, the minimum is 0 and the maximum is n. The assumption p<<n is highlighted as a key constraint in the problem statement, implying that the number of processes is significantly larger than the number of CPUs. The instructor uses a digital slide to present the problem.
Chapters
0:00 – 1:48 00:00-01:48
The instructor starts by reading the problem statement from the slide: 'On a system with P CPUs and n processes, what is the minimum and maximum number of processes that can be in the ready, run, and blocked states, assuming p<<n?' He circles 'P CPUs' and 'n processes' to define the variables clearly. He then begins filling a table with rows for Ready, Run, and Block, and columns for Min and Max. For the Ready state, he explains the minimum is 0 because all processes could be running or blocked. He writes '0'. For the maximum, he argues that if all P CPUs are busy, the remaining n-P processes must be ready. He writes 'n-P'. For the Run state, the minimum is 0 (idle system), and the maximum is P (all CPUs busy). He writes '0' and 'P'. For the Block state, the minimum is 0 (no I/O wait), and the maximum is n (all processes blocked). He writes '0' and 'n'. He uses a pen to write these values directly on the slide, ensuring the logic is visible to the students watching the lecture. The instructor emphasizes that the sum of processes in all states must equal n, which is a fundamental property of process management. He also notes that the maximum number of processes in the ready state is n-P because P processes are running, leaving the rest waiting. He speaks clearly and methodically throughout the explanation.
The lesson demonstrates how physical hardware constraints (P CPUs) and total workload (n processes) define the theoretical bounds of process states in an operating system scheduler, providing a clear example of resource allocation limits and state transitions. It highlights the relationship between CPU capacity and process queuing.