Companies Home Search Profile

Interview Prep: What is a Mutex?

Focused View

Edaqa Mortoray

29:38

40 View
  • 1. Introduction.mp4
    01:03
  • 2. What does it do.mp4
    04:15
  • 3. How does it work.mp4
    08:31
  • 4. Waiting with the OS.mp4
    03:34
  • 5. User and Kernelspace.mp4
    05:19
  • 6. An experiment with JavaScript.mp4
    04:55
  • 7. Conclusion.mp4
    02:01
  • More details


    Description

    You’ve used a mutex before, but have you wondered how it works? In this class, we look inside to discover what lock and unlock do. We’ll discuss how a program coordinates with the operating system, to allow multiple threads to synchronize their work.

    Aside from satisfying your curiosity, this knowledge improves your understanding of concurrent processing. Anybody working with parallel computing should know what’s happening. It helps you spot defects, unravel performance problems, and avoid the evil data races.

    I might gloss over a few details in the class, but at the end you’ll understand how a mutex works.

    Project

    How would you like to write a mutex?

    That may sound harder than it really is. I’ve created a small app, with some skeleton interface for the mutex. You need to complete the mutex to get the simulation working correctly.

    This exercise helps you internalize a part of how the mutex works.

    The code is at: https://github.com/mortoray/interview.codes

    Check it out and open the `demo.html` file in your browser. You need to complete the `mutex.js` file.

    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Edaqa Mortoray
    Edaqa Mortoray
    Instructor's Courses
    Hi, I'm Edaqa, a programmer, writer and chef. For over 20 years, I've been following a diverse and exciting career path. My journey traces through several countries, filled with great people and culture. I've dedicated my time to numerous startups, and an abundance of side projects. There's so much I'd like to share with all with you -- from programming to cooking, to the unusual creative endeavours. I want my classes to give you the confidence you need to succeed, and the curiosity required to make the most of life. Join me in my continuing adventures.
    Learn Web Design & Development with SitePoint tutorials, courses and books - HTML, CSS, JavaScript, PHP, Responsive Web Design.
    • language english
    • Training sessions 7
    • duration 29:38
    • Release Date 2023/09/25