Important Announcement
PubHTML5 Scheduled Server Maintenance on (GMT) Sunday, June 26th, 2:00 am - 8:00 am.
PubHTML5 site will be inoperative during the times indicated!

Home Explore Sem-3, BCA, SYSTEM SOFTWARE AND OPERATING SYSTEM, Unit-9, Process Synchronization

Sem-3, BCA, SYSTEM SOFTWARE AND OPERATING SYSTEM, Unit-9, Process Synchronization

Published by Teamlease Edtech Ltd (Amita Chitroda), 2021-07-13 10:24:26

Description: Sem-3, BCA, SYSTEM SOFTWARE AND OPERATING SYSTEM, Unit-9, Process Synchronization

Search

Read the Text Version

1 IDOL Institute of Distance and Online Learning ENHANCE YOUR QUALIFICATION, ADVANCE YOUR CAREER. www.cuidol.in Unit-1(BCA134) All right are reserved with CU-IDOL

BCA 2 All right are reserved with CU-IDOL SYSTEM SOFTWARE AND OPERATING SYSTEM ❑Course Code: BCA134 ❑Semester: Third ❑e-Lesson: 9 ❑SLM Unit: 9 www.cuidol.in Unit-1(BCA134)

SYSTEM SOFTWARE AND OPERATING SYSTEM 33 OBJECTIVES INTRODUCTION Describe the utility of different system An operating system is a programs & system tools. program that controls the execution of application To understand evolution, types and programs and acts as an functions of OS. interface between the user of a computer and the computer Participants will be able to learn about hardware. Scheduling policies, process concurrency, I/O management, and File systems. INSTITUTE OF DISTANACEll ArNigDhOt aNrLeINreEsLeErAvReNdIwNGith CU-IDOL . Unit-1(BCA134) www.cuidol.in

TOPICS TO BE COVERED 4 ❖ Process Synchronization Human Respurce Manageemnet www.cuidol.in Unit-1(BCA134) All right are reserved with CU-IDOL

Process Synchronization 5 • Process Synchronization is the task of coordinating the execution of processes in a way that no two processes can have access to the same shared data and resources. • On the basis of synchronization, processes are categorized as one of the following two types: • Independent Process : Execution of one process does not affects the execution of other processes. • Cooperative Process : Execution of one process affects the execution of other processes. www.cuidol.in Unit-1(BCA134) All right are reserved with CU-IDOL

Critical-Section Problem 6 • A critical section is a segment of code which can be accessed by a signal process at a specific point of time. The section consists of shared data resources that required to be accessed by other processes. • The entry to the critical section is handled by the wait() function, and it is represented as P(). • The exit from a critical section is controlled by the signal() function, represented as V(). www.cuidol.in Unit-1(BCA134) All right are reserved with CU-IDOL

Synchronization Hardware 7 •Synchronization hardware i.e. hardware-based solution for the critical section problem which introduces the hardware instructions that can be used to resolve the critical section problem effectively. Hardware solutions are often easier and also improves the efficiency of the system. www.cuidol.in Unit-1(BCA134) All right are reserved with CU-IDOL

Semaphores 8 • Semaphore is simply a variable that is non-negative and shared between threads. A semaphore is a signaling mechanism, and a thread that is waiting on a semaphore can be signaled by another thread. It uses two atomic operations, 1)wait, and 2) signal for the process synchronization. www.cuidol.in Unit-1(BCA134) All right are reserved with CU-IDOL

Classical Problems of Synchronization 9 • Bounded Buffer (Producer-Consumer) Problem • Dining Philosophers Problem • The Readers Writers Problem www.cuidol.in Unit-1(BCA134) All right are reserved with CU-IDOL

10 THANK YOU www.cuidol.in Unit-1(BCA134) All right are reserved with CU-IDOL


Like this book? You can publish your book online for free in a few minutes!
Create your own flipbook