This video provides a comprehensive revision session on Operating System concepts for UGC NET Computer Science exam preparation, covering key topics including Process Control Block (PCB) structure containing process state, program counter, CPU registers, and memory management information; deadlock prevention using resource allocation formulas; critical section problem with mutual exclusion and progress conditions; RAID levels and error correction codes; privilege instructions executed only in kernel mode; context switching overhead compared to user-kernel mode switching; memory allocation strategies (contiguous, linked, multi-level); virtual memory implementation through paging and segmentation; thread architecture as lightweight processes sharing process resources; and system boot sequence from BIOS to OS loading.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
🔥 UGC NET Rapid Revision Series | DAY-12 OPERATING SYSTEM
Added:Hello all. Good morning.
How are you all? I'm really sorry that I'm late.
Okay, I'm I'm late for again 10 minute I think 7 minutes I'm late, right?
Okay. Sorry.
One second.
Let me read your messages.
How about operating system revision?
Easy, right?
Can you able to recall the concepts of operating system?
Uh let me um check the messages. Just wait a bit slow. One second.
Okay. Harani kaishrishna.
Okay. Good morning all of you.
Okay.
August 2024.
Then we have to do gate and set. Okay.
Main focus August 2024 and set and gate. Okay. And evening we will do more gate questions.
Okay. So let us start without wasting time. So tomorrow we have discrete structures. Okay. Maths.
Okay. Good morning.
Yes. So, let us start. This is your first question. Easy question. First, tell me the answer first.
Yes, you are right.
Process management, memory management and file management are the functions of operating system but not post. What is post? Post is a power on self test.
Right? System booting power on self test. test for booting test. Okay. Uh that is performed by BIOS. It's not a function of operating system. And this is the second question from deadlock.
Okay.
Not needed Tell me the answer.
Answer C.
Any anybody else got any other answer?
Hrishna.
Answer two. I mean option B that means answer two.
Option four. Kavanga 2.
Good morning. Kbarisha also three.
Okay. Let us see.
Okay. Easy. Total number of resources of five. Okay.
Okay.
Right?
need needed uh resource to one process and for the remaining process minus one.
Do you can you recall that?
Yes. So let us start we have only five out of five we are giving to one process one uh I'm just writing P1 P2 P3 likewise I'm writing because I don't know how many process is going to process so what I'm going to do I'm just write like this and five instances of resource we have so for one process I'm giving full what is the need three the remaining process minus one that means 3us Okay, that's all my resources is over.
Now I don't have I don't have any other resources for allocating to process three. That means only two process can give these uh resources so that catalog can never be occurring.
Why you are going to use the formula?
Okay. Now moving to the next question that is I asked you August 2024.
Answer Mahasendul Shajida.
Yes, you are right. Correct answer is option three. That is AC D. Process process control block. Process control blockcess information process control block. It will reside in the main memory that you know. Okay.
cell in process complete information state whether it is running waiting or terminate I'll show you the details okay see this is this is our class slide okay it's residing memory over process over process control block okay for each process one process control block will be there and throughout the lifetime of the process it will be there and it's deleted once the process deleted okay and uh this information I took from this website. Okay. So, information uh process state, current state of the process, whether it is ready, running, waiting or whatever.
Contains information about the process state such as whether it is running, waiting or terminated. And then processes process ID program counter. Program counter.
Yes.
All right. And what else? Registers.
Yes. That is in the option four I think.
Yes. CPU registers. So scheduling information and CPU registers.
Okay.
Program code and data segments. Okay. It stores a process memory management information. See see this memory limits.
Memory management information. Memory management information means what about uh what are the things in memory management? That is memory limits. Page table or information. Okay. Segment table. All these details will be there in this memory management information.
Okay. So, okay. Program code and data segments of the process will not be there.
Next question about mutual exclusion.
Yeah. Yeah.
Okay. Fourth one. What is the answer?
What is the answer? Good morning.
Okay.
Fourth one. Fourth one is option A because mutual exclusion ensure that only one process can be in critical section. Yes, that is the definition.
Mutual exclusion is designed to prevent conflicts. Yes, mutual exclusion can use various algorithm. Yes, various algorithm.
But last option mutual exclusion allows multiple process to access the critical section.
First statement contradictory statement option D that's why it is wrong. Next question.
I know I remember you day and I you were in PGT. I know I think we all mentioned Google meet also right one time during the PTB section.
This is question number five option.
What is the answer?
Option B. Some students telling option C.
Answer is of course option C.
Threat virtual address space file system signal signal path that is interrupt.
Signal is matched with interrupt. No doubt in that four is matched with P. So these options gone. Okay. Then uh file system of course this file system disk only three 3s. Yes. So that we can choose this. Okay. Then other other than I is thread thread and uh what what else? Virtual address space. Okay.
Virtual address space is memory related, right? And thread the CPU.
What is the concept? Thread is represent unit of execution on the CPU. Right?
Thread represents a unit of execution that runs on the CPU. Virtual address space provides an abstraction of physical memory.
File system organize and manages data stored on disk. Signal is a software level mechanism that is analogous to hardware inter.
Next question. August 2024 simple question.
Answer sixth one.
Yes. Simple. No explanation required.
But why I choose chosen this question?
Because yes.
Now this is your seventh question.
Asking gauge expected question. Okay.
One second.
Okay. What is the answer you got?
Okay. Praadi mamaya kavanga mahasindil rani krishna all of you given wrong answer.
Ghami and da da and ja prascila anita gave the correct answer.
Okay. What is the doubt in this?
What is critical section means critical section is the area where process can use the shared resources. Shared resources area only one process can enter that is called mutual exclusion and progress means whatcess I mean one process need to access Okay. Then that process we should allow that process to enter into the critical section if it is free means that is called what progress. Okay. So mutual exclusion progress.
So the answer is mutual exclusion only.
Why? Because here the initial values random assign. Okay. So we can uh check the program. See here while S1 S2 this is the program for P1 first process then second P2 okay first P1 condition S1= to S2 that means there is variables S1 S2 equal it is not allowed P1 to enter into the critical section. Okay S1 S2 both same then you are not allowed to access the critical section. You just wait, keep on wait till this condition got wrong.
S1 and S2 not you can see a semicolon here. This is called infinite loop.
I mean okay. So it cannot allow it cannot go.
If suppose the values s1=0 and s2=0 what will happen? The p1 will keep on checking but it is not satisfied. So it will wait. But P2 if P2 wants to enter P2 is checking S1 not equal to S_sub_2 S1 not equal to S2.
Okay.
But this is the favorable condition for P2.
P2 will go to the critical section.
Enter into the critical section. It will do it will access the resource after finishing. Okay. Resource it will change the value S2= S1 S2= S1 so that the P1 can access the critical section. Okay. That means only one process is allowing to enter into the critical process.
Okay. That means mutual exclusion is okay. Mutual exclusion.
Okay. But what about progress?
Mutual exclusion I mean critical area.
Nobody is there. Okay. And the values are S1=0 and S2=0.
Okay.
Right. Critical section three. P2. P2 chance because P2 can enter but P2 doesn't want to enter. P2 doesn't want to enter but P1 want to enter. P1 wants to enter. Then what will what will happen can P1 get the chance?
Tell me using this code the value is S1=0 and S2=0. P2 is not entering into the critical section but P1 needs the critical section. Then what will happen?
Is the P1 get a chance? P1 chance.
Tell me.
Tell me S1 S2 P2.
Okay.
But P1 wants wants a critical session.
Then what will happen?
Tell me. That is called progress.
Progress. No. Progress is not satisfied.
Even though P even though this critical section is free free P1 wants to enter but P2 enter I P2 in the condition change progress is not implemented by this code. Is it clear?
Yes. If no process is in the critical section and some process want to enter one of them should eventually be allowed. If it is not allowed means progress is not satisfied. I hope it is clear.
Okay. And in the boundary waiting another one condition is there. You remember three conditions are there now for the for the critical section problem solution. Okay. Initial solution progress and bounded waiting. Bounded waiting also not here. Bounded waiting means limited.
Okay. Because of this progress.
So here solution.
Okay.
Is it clear or not?
Tell me.
Okay, next one.
Okay, I will take more question from this critical section. Okay, I think you need more practice.
Grade level 11 question.
What is the answer?
84 also wrong. The correct answer is option two. Raid level two. Raid level two.
Error correcting hamming code.
See this. This is our class slide.
See rate two bit level striping with dedicated parity used error correction code named hamming code. See error correcting rate level one mirroring.
Okay zero striping.
Next rate level four block level striping with dedicated parity.
Raid level four. See block blocked is level five.
Then level three is bit this one.
So it's match with three see by level. Sorry.
Okay. And rate six is there. It can handle double failure. Two dise I think December 2025 P plus Q redundant scheme. Okay. Raid 1 Z that is 1 and zero. Good combination.
Okay, right combination.
Next question.
10th one it's related to privilege and instruction simple question that is option one only one.
Okay. What is privilege instruction?
Means privilege instruction.
It can only be executed by OS kernel.
Okay. And it is designed to perform operation that can directly affect the hardware. Yes.riv privilege instruction.
Okay. And third option, user application can execute privileged instruction if they have the correct permission. No, if they got the permission also user privilege instruction access only with the help of system.
See they must request the OS through a system call and the colonel execute the privilege instruction. Okay. system but execution not user. Okay. And the last option it usually executed in user mode to en ensure the safety and security. No, it is uh this privilege instruction will be executed in kernel mode only. Simple question. Next one. This types of question you can expect from paper one.
Okay. ICT paper.
This type of fastest to slowest.
Yes.
Uh the answer of course then slow.
Okay. So this is the last which one is faster cashier or register.
Suppose in this question if they have included this option register.
Yes. Before cash. Very good. Register to the cash. Register the fastest.
Yes. Good.
Next question.
Message passing explain based on this this question.
Okay.
Anyone can recall this trend was yes.
Okay. Kbarisha. Kbarisha. Correct.
Brahma. It's wrong. It's not D. The answer is option A.
See this is our class.
I think you didn't do the properly correct since synchronization message passing can be blocking. Blocking or non-blocking blocking means synchronous.
Nonblocking means options blocking sent non-blocking send.
Blocking received. Non-blocking receive.
Recall the concept. If both send and received are blocked.
And receiver both are blocking means it is called renus. It is used in a programming language. Okay. Random sender and receiver both blocking it is called renas.
Yes.
Next question. August 2024.
must go through the notes once that okay before the exam notes full and full go through pano PDF or the your class notes Okay. So correct answes and circular access.
Then finally virtual memory that is extension of physical memory illusion right illusion providing that secondary storage secondary memory for the execution purpose that is extense physical memory.
13th question.
Yes and correcting the correct answer is option three only.
What is multi-processor system means?
Multi-processor system is controlled by one operating system. Yes, because multiprocessor system multiple CPUs will be there. Okay. Multiple CPUs.
Multiple CPUs controlled by one operating system.
Second option multiple computers connected. No, multiprocessor means multiple CPUs connected by control connected and it is controlled by one object. It is not like multiple computers. That's why it is wrong. And the last option multiprocess system is classified as multiple instruction stream and multiple data stream. Yes, ma right multiple instruction stream and multiple data stream system and according to flying taxonomy this is called MIMD which display how multiprocess system operate.
Okay, next question.
Which one takes more time? Turka wrong and wrong.
Question number 14. Let the time taken to switch between user and kernel mod t1 and the time for contact switching that is t2 of course for t2 t1 is less than t2. Why? Because user to kernel mode switches involves only privilege mode either user 0 or exiting theel butcess.
These are the steps involved in the contact switch. First of all in the current state then next process state load. Right?
Then DCB information process control block information update. Then finally memory management.
Okay. So all these process are all these steps are involved in the context switch. That's why it takes more time than switching from user to kernel mode.
Next question.
Expected questions continuous allocation linked allocation index multi Yes.
What is the answer?
Okay. Everyone say option C. Yes.
Continuous contigious memory allocation.
That's why minimal access number of disk access is minimal.
random access required. No, right. So lingual allocation supports only sequential access. So it is matched with this. Then index allocation level index allocation.
So wastage of space then multi-le supports very large files large multi-level allocation.
Okay. So multi-le allocation uses a hierarchy of index block single double triple likewise. So it support very large files.
Next one 16th It's very very important.
Which of the following is true?
important.
Okay, correct answer is uh I think only Krishna gave the correct answer. A thread is usually defined as a lightweight process because an operating system maintains smaller data structures for a thread than for a process. In relation to this, which of the following is true? on per thread basis always maintains only CPU register. Thread basis register CPU OS maintains only CPU register state OS does not maintain separate ST for each thread on per thread basis. OS does not maintain virtual memory state which is a correct answer. This is the true statement. See a thread has its own CPU register state, program counter, stack and scheduling information, but it's thread belonging to the same process chair, core segment, data segment, open file, virtual address, virtual memory.
Okay, you already know segment and data segment and virtual address also.
Virtual memory also it is sharing.
That's why option C is the correct answer. Virtual memory state is maintained per process not per thread maintain.
Next question numerical directly formula.
Why in the previous question the option one is wrong?
Maintains only CPU register state.
Sorry. Yes, you got the answer.
Okay. So what is the heat ratio here?
35. So just multiply 0.35 into primary access time that is 10 right. Then what is the um uh what miss ratio? So 1 minus.35 that is 65 0.65 into memory access time that is 100 ncond that's all when you do the calculation you will get 68.5.
Okay, simple.
But you can expect this this type of question.
Next question.
Whatever new information you are getting from question now itself you have to write. Okay.
18th one.
17th.
18th one.
Option BT.
Okay. So I will directly the option Ri and Anita.
Correct answer is option A.
Okay. For ls for ls list.
Okay. That is a that is a external commain.
Okay.
Internal command. It's built into the shell itself. Separate executable files they not required. Okay. Separate comm library function. Print is a library function. It is used to display output on the screen.
And the last one is ls that is list.
Okay. It's used to display the files and directories present in a uh in a directory. Okay.
separate executable file.
Okay. So, echo is a internal command and ls is external and is a library function that you might know right. Next question.
If the page size is increase, what will happen?
Recall the paging concept.
Yes, everyone is saying correct answer I'm wrong. Answer is becomes small larger page size more unused space will be there likely in the last therefore internal fragmentation increases for example page size 4 KB okay and process needs uh maybe 3 3.4 Four four page size is four and process may need 3 maybe 3.5 3.5 Kess okay 8 km I mean again more space that means page size increase will get increased.
Okay that's why option B is the answer.
Okay, because in paging memory is divided into fixer size pages, right? That's why Anita also wrong.
Which of the following statement is false?
Long-term scheduleuler selects process from disk and loads them into memory for execution. 28th is concept of switching is regard as option D. Answer what is the answer? False statement.
False statement is option B only. Degree of multirogramming is controlled by whom? Who is controlling the degree of multirogramming?
H tell me who is controlling the degree of multirogramming.
Which scheduleuler is controlling the yes long-term scheduleuler is controlling the degree of multirogramming because long-term scheduleuler select process from disk and load them into memory.
So that is degree of multirogramming.
Medium-term scheduleuler is responsible for swapping to reduce the degree of multirogramming. This is a correct statement and concept of cont switching is regarded as overhead. Yes, this is over. Okay. And this is our class slide.
Long-term cellular controls the degree of multirogramming. Medium-term cellular reduces the degree of multirogramming.
Next question.
Consider the following program for Yes. 213 zombie process. Why? Because okay greater than Zcess equal 100 parent.
I meancess in the process table. Then what will happen? it will become a zombie process till the parent wakes up and exit the weight code. Okay, that's why the answer is zombie process.
Next question.
Computer network questioning RPC remote procedure connected 22.
So connection between two network client and server client server communication.
Yes, correct answer is client correct format to sending into the network. You need to convert this parameters into a format.
Okay. And uh that is okay. Then other side process of converting procedure parameters into a format that can be transmitted over the network that is client step skeleton is at the this is wrong. Skeleton is at the server side but it ending.
Okay. So this is the correct answer.
And this is the um steps. Okay.
So just read it.
Next one.
23. Yes, very good. 23 is it prevents crashing. Which of the following statement is true about working set model? Working set model.
What is working set model?
working.
Okay. Working set means frequently accessing memory set. Okay.
Thrashing. What is mean by thrashing?
Yes, thrashing.
Thrashing is swapping and swapping out.
Swapping in and swapping out frequent that is that is called trashing. Okay.
again transferring and swapping out thrashing. Thrashing is not a good good property. Okay. System spends more time swapping pages in and out.
Why? because it's ensuring that each process get in a frame for its current working set. Okay, next question.
Yes, Sha correct.
memory management unit.
Yes, it's a hardware unit, right? It's a hardware unit that maps virtual address to physical address. That is the definition of memory management. It's a hardware unit. It's a chip to map virtual address to physical address.
Okay.
This is essential system that use virtual memory where each process has its own address space.
Okay. Sorry. Next one question so that you can learn it now. Full form of POSIX in Pthread concept full form of POSIX is portable operating system interface. What is this? It is a set of ITE standard designed to maintain compatibility between operating system operating system between operating system.
compatibility sets portable operating system interface.
Okay, it's a part of the standard and provide a standardized C programming interface for creating and managing threats. Okay. So, P concept. Okay.
Next one.
Either you can expect non preemptive or preempt What is the answer? 26th one.
Oh, actually 25th question. 26th.
Yes Krishna correct grandma correct shaj wrong nonpreemptive CPU scheduling nonp prereemption of CPUcess it is terminated or it is going for the voluntarily input output operation So when it is going to the terminated state or it is going to the waiting state a process switch from running state to waiting state for the input output input output processing I mean input output waiting.
Okay. and terminating also it is overpreting.
Okay.
But running to ready preeemption and waiting to ready also preemption.
Okay.
27th What is the answer?
Yes.
Opensource software. Software that is distributed with its source code allowing users to use, modify and redistribute it with its original rights. Opensource software. Okay.
Example Linux and Firefox opensource software.
Okay.
Proprietary software.
Okay. Open we can modify and redistribute it.
Linux rm command prompts the user for confirmation before removing each file. rm for removing.
Okay.
Something we will add here for getting a confirmation. Are you want to delete or not?
interactive mode that is ask for confirmation before deleting each file.
And next question.
Okay.
Wrong.
Change the access permission. discuss access permission.
Yes, ch mode. Yes, very good. CH mode is change mode. Choose to change the file and directory per set.
Yes. And what is pwd? Do you remember what is pwd?
H pwd is print working directory print working directory and it displays the current directory path and cat for concatenation. Okay, file concatenate combined cq and ss means secure shell.
And 30th question.
So the following is active first during the normal.
What is the answer? Yes. Option C ROM BIOS RAM BIOS BIOS BIOS it's ROM BIOS exe first then performs the power on self test after that read the SMOS boot configuration then finally boot load from the hard sequence question and this is your last question virtual memory system can be combined by which of the following technique Demand paging techncept.
Paging and segmentation technique both segmentation both combined virtual memory paging means break the memory into small equaliz pages. Okay.
Only needed pages are loaded into RAM from the disk making memory usage efficient and allowing the program to be larger.
Memory segment division based on logic it is dividing. Okay.
Then whenever it is needed it is it can be stored on this when not in use and loaded into RAM as needed. That is virtual memory. Right. virtual memory concept this paging and segmentation combin okay so that's all 31 question discuss and uh we will do more uh gate question in the evening section okay and tomorrow max discrete mathematics discrete structures we will do okay so thank you all And this is our ninth subject revision. Okay. And tomorrow is the last subject.
So late.
Sorry for that. You can continue your reision. Okay. So bye all of you. Thank you so much.
Related Videos
Walmart Manager Arrested After Stealing $670,000 - A Data Analyst 800 Miles Away Caught Him
bodycamsecretsyt
111 views•2026-06-09
GitLab’s Manav Khurana: AI Agents, Orbit, and the Future of Coding
TechVoices-live
374 views•2026-06-10
"What's the Difference Between a Class and an Object?"#class #programming #softwaredevelopment
CS-with-Alireza
349 views•2026-06-08
Why Your Computer FREEZES?
GreshamCollege
1K views•2026-06-09
Feodo Tracker: Botnet C2 Intelligence Platform #CyberCavin
CyberCavin
269 views•2026-06-06
I thought this feature would be easy to deploy... I was wrong.
dreamsofcode
815 views•2026-06-10
The Operating System That Should Have Beaten Linux
BitByteTalks
23K views•2026-06-08
STCS - Class 23: How to make your Mobile App Fast
mosesmbadi
116 views•2026-06-07











