Shared Memory Systems

preview_player
Показать описание
Operating System: Shared Memory Systems
Topics discussed:
1) Shared Memory Systems.
2) Producer-Consumer Problem.
3) Type of Buffers.
4) Unbounded Buffer.
5) Bounded Buffer.

Follow Neso Academy on Instagram: @nesoacademy

Music:
Axol x Alex Skrindo - You [NCS Release]

#OperatingSystemByNeso #os #OperatingSystem #SharedMemorySystems
Рекомендации по теме
Комментарии
Автор

I absolutely love the way you teach, repetition and rewording/ rephrasing ways to make us understand it in different ways is so helpful.

ThisIsntmyrealnameGoogle
Автор

Here is what I understood:
Shared memory System is one of models of Interprocess Communication which is used for communicating between processes by creating region of a memory. The processes that initiated communication will be creating the region of a memory and others who wants to communicate has to put the shared memory-segment to their address space. Originally operating system won't allow processes accessing each other's data, but if two or more processes agree to remove their restriction then it's possible.
In order to understand the concept we took an example of Producer Consumer problem. Producer produces an information and consumer consumes information (just like real life examples like having services, buying staff, surfing internet etc). The problem is the producer and consumer has to work simultaneously so that while producer produces, consumer will consume. They has to be synchronized so that consumer will only consume what's available there (instead of trying to consume which isn't produced yet). The solution to the problem is shared memory, to allow producer and consumer work concurrently we need something called buffer of items which can be constantly filled with information by producer and consumed by the consumer. Buffer resides in shared memory region.
There are two types of buffers, unbound buffer and bound buffer. In either case if there is no information to be consumed then consumer must wait. The difference is for unbound buffer, the producer can produce without limitation while for the bound buffer producer can produce only fixed amount of data.

DaiMoscv
Автор

nothing can be better than watching your informative video

rohitranjan
Автор

Fantastic explanation, it is very useful to add real life examples, thank you 🙏

shirleyachara
Автор

Jazak Allah Khairn Best explanation Thank you

LearnDSAWithInSeconds
Автор

Unbounded buffer - normal queue, bounded buffer - circular queue

divyanshmishra
Автор

Thank you, much love from University of Zimbabwe

takudzwachomba
Автор

best ever browser. It has changed my interaction with the internet, for the better. Thank you so much.

GustavoMontanha
Автор

Thank you for this informative video 😊

mazharkhaliq
Автор

this video is great example of how to make 5 mins video into 15 mins 😩😩😩

akshaydhumale
Автор

Please a video on memory management and virtual memory

vidhiveragiwala
Автор

Please do more videos on operating systems

vijaysharma-nnth
Автор

Fantastic explanation
Thankyou so much sir🙏🙏

muskanmuskan
Автор

is this buffer used for shared memory the same thing as a buffer in a heap or the stack? it sounds a little different, so I'm not sure.

tanchwa
Автор

Will you make video over pipes, DDE(dynamic data exchange), OLE (object linking & embedding)interprocess communication...
Because of that is a part of IPC

eobardthaw
Автор

Please upload some videos for 'Design and Analysis of Algorithms(DAA)'.

vaibhuuanand
Автор

My question is that if the shared memory region in this IPC method has anything to do at anypoint with dynamic libraries or the libraries that have an address space from which other programs can use for dynamic library linking or is this method of communication separate from this all together?

dannymasri
Автор

Is there more chapters on Operating system or its completed. please tell me

mdeepi
Автор

u explained that, if 2 processes want to use 'Shared memory' for communication then they should break the restriction which is put by OS, i.e one process can not access memory of other process and vice-versa. So
how this restriction is broken by processes?
who is going to intimate this broken restriction to OS?
Actually only processes who want to access this memory, should break the restriction. isn't it? If not, then why process which is going to write into buffer, should break the restriction? because shared memory resides in its own memory space.

praneshacharya
Автор

How persistent storage is handled by operating systems?

mohamedragabsalama