L-1.3: Multiprogramming and Multitasking Operating System in Hindi with real life examples
Introduction to Types of Operating Systems
In this section, the speaker introduces the two types of operating systems - multi-programmed and multi-tasking. They address the confusion between these two types and explain the differences.
Multi-Programmed Operating System
- The concept of a multi-programmed operating system focuses on bringing as many processes as possible into the RAM.
- This means that multiple processes are brought into the limited size RAM simultaneously.
- Execution of these processes takes place in a non-preemptive manner, where each process is executed completely before moving on to the next one.
- If a process requires an input-output operation, another process is given CPU time while waiting for that operation to complete.
Multi-Tasking Operating System
- Multi-tasking operating systems are pre-emptive or time-sharing in nature.
- Processes are scheduled in advance for a specific time interval, and if they do not complete within that interval, they are rescheduled for future execution.
- The advantage of multi-tasking is that there is minimal idle time for the CPU since there are always processes available to execute.
- Another advantage is improved response time due to efficient scheduling.
...
Title for Subtopic
- Bullet point 1
- Sub-bullet point 1
- Sub-bullet point 2
- Sub-sub-bullet point 1
- Sub-sub-bullet point 2
- Sub-bullet point 3
- Bullet point 2
- Bullet point 3
Repeat the above structure as necessary, using subheadings and bullet points to organize your notes.
New Section
This section discusses the concept of time sharing and its advantages in a multi-tasking environment.
Time Sharing and Response Time
- In time sharing, each student is given a turn to ask questions.
- The 10th student's turn will come later, but the response time is faster for each student.
- The teacher solves two questions for the first student, even if there are more questions.
- Then two questions are solved for each subsequent student until reaching the 10th student.
- This approach allows for faster response times and creates a sense of fairness among students.
Responsiveness and Idle Time
- Time sharing emphasizes responsiveness by allowing quick switching between tasks.
- The CPU executes processes one after another, preempting them after some time.
- This ensures that the CPU is not idle and maximizes its utilization.
Difference Between Multi-programmed OS and Multi-tasking/Time Sharing
- Real-time systems typically use multi-tasking or time-sharing approaches.
- Laptops and personal computers use multi-tasking or time-sharing operating systems.
- Algorithms like round-robin scheduling are used to execute different processes efficiently.
New Section
This section highlights the difference between multi-programming and multi-tasking in operating systems.
Multi-programming vs. Multi-tasking
- Multi-programming refers to running multiple programs simultaneously on a computer system.
- Multi-tasking, also known as time sharing, involves executing multiple tasks or processes concurrently on a single CPU.
Execution of Processes
- The video mentions that there are different ways to execute processes in an operating system.
- However, this video focuses on understanding the difference between multi-programming and multi-tasking rather than discussing specific execution methods.
Conclusion
The transcript provides an overview of time sharing in a multi-tasking environment, emphasizing the advantages of faster response times and reduced idle time. It also highlights the difference between multi-programming and multi-tasking in operating systems.