OS Notes Personal

 Why OS?

1. Resource Management


    It acts as an interface between applications and resources





OS makes sure that memory does not clash between apps





Definition : 




    TYPES OF OS _ MIMP FOR INTERVIEWS



At a time only one process runs, after it finishes, the 2nd process starts.

cons : violation of all 3 Goals

2. Batch Processing OS


cons : violation of all 3 Goals

J4 and J1 will also execute sequentially, so, no as such benefit

If the new job with high priority comes in, it will be in next batch


3. Imp for interview






4. 


Each process will run for 1000ms and then, next one will start the execution


All 3 Goals achieved

5. 





6.



7.



Examples of OS: 









What is Process?







A and B are independent, then, we can execute it in parallel.



Multi- Threading : 







Multi Threading :

Inside a single process, multiple threads completes a task


Multiprocessing : 

many processes p1,p2 are running on diff CPUs.


Multitasking : 


Multiprogramming : 


v4:24:06

Comments

Popular posts from this blog

Extracting Tables and Text from Images Using Python

Positional Encoding in Transformer

Chain Component in LangChain