Hello and welcome to a new section on multiple processes control.
This topic is about how to prevent more than one instance of a process from running concurrently.
Objective, if a process is already running, you do not want to start another similar process.
How to do it.
We use a concept in operating system called process synchronization.
Process synchronization is a task of coordinating the execution of processes in such a way that no two
processes can have access to the same data and resources and data and resources here refers to the memory.
How can we achieve that?
We can use something called locks.
Types of locks.
There are several times on logs, for example, new text, also known as mutants of mutual exclusion
locks or simply locks.
This is the oldest lock that exists in operating systems.
Second is semi false, semaphore is an improved version of a mute lock with additional parameters for
control.
Events also known as event objects.
Name, Price, a time offer used in memory for internal process communication, so it possess once to
prevent another instance of itself from running.
It can acquire one of these and even the second process upon starting finds that any of these locks
how resistant in memory, then he will just squeak.
So that is the idea of how we're are going to implement multiple process control.
Thank you.
I'll see you in the next lesson.