Classical Problems on Synchronization: Reader-Writer | L 19 | Operating System | GATE 2022 CSE

Поділитися
Вставка
  • Опубліковано 23 жов 2024
  • The Great Learning Festival is here!
    Get an Unacademy Subscription of 7 Days for FREE!
    Enroll Now - unacademy.com/...
    .. In this live lecture, you will prepare the #OperatingSystem for GATE CSE/IT 2022 Exam. #VishvadeepGothi Sir has covered the #ClassicalProblemsOnSynchronization_ReaderWriter from the operating system in this video. So here Sir will give you a lot of tips and tricks to crack the #GATEExam
    Start on 2 June:
    Evolve for GATE 2022 (CS & IT) - Batch P
    unacademy.com/...
    Next 🏆 Combat Date: 20th June
    Time: 11 am
    Link: unacademy.onel...
    🙏 Welcome to Unacademy Computer Science Channel, your one-stop solution for all GATE Exams 💯India’s Top Educators will be teaching you daily on this channel. We will cover the entire syllabus, strategy, updates, and notifications which will help you to crack the GATE exams 🎯
    During the live session, our Educators will be sharing a lot of Tips and Tricks to crack the exam. GATE aspirants who are preparing for their Exams will be benefited from this channel. Unacademy platform has the Best Educators from all over the country, who take live classes every day ✔️
    Vishavdeep Gothi and other Top Educators take classes on Unacademy App.
    Use Special Code “VDEEP10” to get 10% off on your Unacademy Subscription 😍
    👉🏼 Subscribe today: unacademy.onel...
    👉🏼 Special Class Link: unacademy.onel...
    👉🏼 Vishavdeep Gothi’s Unacademy Profile Link: unacademy.onel...
    🏆 Unacademy Combat Link: unacademy.onel...
    📝 Playlist Link: • Operating System | GAT...
    Do Subscribe and be a part of the community for more such lessons here:
    👉🏼 Join the Telegram: t.me/Unacademy...
    👉🏼 Subscribe to our channel: bit.ly/2PTRRxk
    ✏️ Unacademy Studios Feedback Form: bit.ly/GATEESE10
    Download the Unacademy Learning App here:
    👉🏼 Android: unacademy.onel...
    👉🏼 iOS: unacademy.onel...
    Unacademy Subscription Benefits:
    1. Learn from your favourite Educator
    2. Dedicated DOUBT sessions
    3. One Subscription, Unlimited Access
    4. Real time interaction with Educators
    5. You can ask doubts in live class
    6. Limited students
    7. Download the videos & watch offline
    Get the GATE & ESE Iconic Advantage:
    1. Personal Coach
    2. Study Planner & Bi-weekly Reviews
    3. Dedicated Doubt Clearing Space
    4. Personalized Test Analysis
    5. Study Booster Sessions
    6. Preparatory Study Material
    7. All the Unacademy Subscription Benefits

КОМЕНТАРІ • 14

  • @saurabhtiwari287
    @saurabhtiwari287 3 роки тому +21

    Sir, aapke ashirwaad se or aapki guidance se sabka bhala hoga. I guarantee it

  • @aniketdas3406
    @aniketdas3406 11 місяців тому +6

    If there's someone like me who's struggling to understand how multiple processes can read without allowing any other process to write, it can be explained in this way:
    When the first reader process enters it decrements the wrt and makes it 0 so that no writer process can execute untill the last reader has done its job and signals wrt.
    Therefore, after the first reader process, other readers which will try to read concurrently will skip the if(readcount ==1) part since wrt is already decremented by the first read process and write() operations are halted.
    I hope it helped you :)

    • @cruelgamer8351
      @cruelgamer8351 6 місяців тому +1

      Okay but why there no code line to restrict readers in writer process

  • @nirbhaykumarchaubey8777
    @nirbhaykumarchaubey8777 Рік тому +1

    You Rock, Sir!

  • @aspirant8409
    @aspirant8409 3 роки тому +18

    Start 7:10

  • @codeeasy17
    @codeeasy17 11 місяців тому

    Nice explanation

  • @krishbhat7466
    @krishbhat7466 Рік тому +2

    sir initially its written that multiple readers can access the file, but in code only one reader is allowed at a time and other reader wait at mutex. why?

    • @Aditya-ie8ch
      @Aditya-ie8ch Рік тому +5

      we can't let mulitple readers access the readcount variable at the same time..thats why we gotta use wait(mutex)..however once the readcount++ is done and signal(mutex) too...other reader can now access the file..so we gotta use preemption at the end of 1st signal(mutex) for multiple readers to be able to read

  • @imsurajkumar
    @imsurajkumar Рік тому +1

    Ready to caught

  • @uddipangoswami8427
    @uddipangoswami8427 2 роки тому +1

    Sir in writer code why wait mutex is not taken before wait(wrt) ?

    • @soumilyade1057
      @soumilyade1057 2 роки тому +1

      cause wrt is a Binary semaphore, and readcount is a regular variable that can have a value of n...

  • @Adityasharma-oe8zp
    @Adityasharma-oe8zp 3 роки тому +7

    And the guy who connected the tv to headphones was badly injured in confrontation🤣🤣🤣

  • @difflyfe23
    @difflyfe23 4 місяці тому

    ready sir

  • @kajalmondal9745
    @kajalmondal9745 3 роки тому +1

    ♥♥