L-1: Introduction
L-1.1: Introduction to Operating System and its Functions with English Subtitles
Section titled “L-1.1: Introduction to Operating System and its Functions with English Subtitles”L-1.2: Batch Operating System | Types of Operating System
Section titled “L-1.2: Batch Operating System | Types of Operating System”L-1.3: Multiprogramming and Multitasking Operating System in Hindi with real life examples
Section titled “L-1.3: Multiprogramming and Multitasking Operating System in Hindi with real life examples”L-1.4: Types of OS(Real Time OS, Distributed, Clustered & Embedded OS)
Section titled “L-1.4: Types of OS(Real Time OS, Distributed, Clustered & Embedded OS)”L-1.5: Process States in Operating System| Schedulers(Long term, Short term, Medium term)
Section titled “L-1.5: Process States in Operating System| Schedulers(Long term, Short term, Medium term)”L-1.6: Imp Linux Commands(Operating System) | Must Watch for College/University & Competitive exams
Section titled “L-1.6: Imp Linux Commands(Operating System) | Must Watch for College/University & Competitive exams”L-1.7: System Calls in Operating system and its types in Hindi
Section titled “L-1.7: System Calls in Operating system and its types in Hindi”L-1.8: Fork System call with Example | Fork() system call questions ⭐⭐
Section titled “L-1.8: Fork System call with Example | Fork() system call questions ⭐⭐”Fork() - Create a Child Process that will be clone of the Parent Process
- It is required if parent process is busy somewhere
/ 0 (Child)Fork() return - +1 (+ve) (Parent) \ -1 (-ve) (if Child process is not created)main(){ fork(); printf("hello");}parent process -> main()
P | fork() / \ C1 P | | hello hellomain(){ fork(); fork(); printf("hi");} P | fork() 1 / \ C1 P | | fork() fork() 2 / \ / \ C2 C1 C3 P | | | | hi hi hi hi
c1 c2 c3 will run concurrent...Note:
- If we don’t want to use Fork() we could use Thread
- Thread -> If a parent is busy, we can make a thread, that create a third hand of the process.
- It is shared