Multi-threading interview questions

Rackspace mxEbs
Jul 3 21 Comments

From my research, it looks like LinkedIn and Dropbox likes to ask questions related to multi-threading during the coding interviews. Where do you suggest I look for multi-threading coding problems (LC has none)?

comments

Want to comment? LOG IN or SIGN UP
TOP 21 Comments
  • Tibco software / Eng !mlikoj!
    Lol can confirm. Dropbox leads every question to multi threading.
    Jul 3 2
    • Bloomberg bsSlayer
      the irony is real given they're a Python shop 🤣🤣
      Jul 3
    • Nutanix 1adja134
      Hahaha
      Jul 3
  • Dropbox rawhide
    What is a thread?
    Jul 3 0
  • Nvidia fckm
    Suggest lock-free programming. I swear half of the CS people are not familiar with lock-free and wait-free concepts!
    Jul 3 3
    • New / IT xizX84j
      Yeah....no. Don't do this...
      Jul 3
    • Bloomberg bsSlayer
      only in very limited cases like single writer multiple readers etc. When you have multiple writers there's no other choice than locking.
      Jul 3
    • Nvidia fckm
      True, but then again it's a think-outside-the-box solution. Everyone thinks of locks the moment they hear multithreading. Nobody thinks of lock-free or wait-free
      Jul 3
  • New / IT xizX84j
    Just add a lock here and a lock there...
    Jul 3 3
    • Rackspace mxEbs
      OP
      Just keep adding locks? Lol
      Jul 3
    • Oscar 🐨koala
      Now don’t get too kinky, son. The right approach is to use database for everything.
      Jul 3
    • New / IT xizX84j
      It looks like you re ready for that interview
      Jul 3
  • LinkedIn jhYu01
    Not the typical spoon-fed leetcode kind but mechanical sympathy is one of the best blogs on multi threading , concurrency. https://mechanical-sympathy.blogspot.com/?m=1
    Jul 4 0
  • Docker / Eng
    DckrSecBro

    Docker Eng

    PRE
    Red Hat
    DckrSecBromore
    I'm old school but I learned multithreading from Boost.Thread docs & Wikipedia 🤷‍♂️

    But, you should also really understand how things like immutability, limiting shared state, and pass-by-value affect the need for locking constructs & the trade-offs. Studying how Rust and Go handle concurrency will give different perspectives -- Dropbox uses Rust in places. Haskell supports traditional multithreading patterns and CSP based concurrency (like Go) and the immutability provides good safety guarantees.

    I'd say fuck the interview and learn about modern concurrency & async because it's pretty damn important. MT is a prereq for some of that, but its not the end goal anymore.
    Jul 4 0
  • Alibaba Group vXQh35
    Cracking the code interview has basic questions. I think it’s a good start.
    Jul 4 0
  • Amazon klulez
    Interviews are the only place they use/demonstrate their multi-threading knowledge.

    @LinkedIn @Dropbox
    Jul 3 0
  • Apple / Eng
    neverSt0p

    Apple Eng

    BIO
    Just an another engineer. Hoping to find a few friends here :)
    neverSt0pmore
    You use Java?
    Jul 3 2
    • Rackspace mxEbs
      OP
      Yes. Know any good source for multi-threading java questions?
      Jul 3
    • Apple / Eng
      neverSt0p

      Apple Eng

      BIO
      Just an another engineer. Hoping to find a few friends here :)
      neverSt0pmore
      I never prepared for them. But, I have done multi threading. So, I can help you with whatever knowledge that I have, if you are interested 😊
      Jul 3
  • New / Eng
    Flatline

    New Eng

    BIO
    I’ve become really good at getting shit done. I’m not even joking. On top of this, people love working with me, which to me is the biggest prize.
    Flatlinemore
    Read about lock ordering and lock hierarchies (google it), it explains how to avoid deadlocks when doing multi-threading, and you’ll be killing two birds with one Nokia 510.
    Jul 4 0
  • Amazon FatPig
    Just add lock before every write. They will be happy
    Jul 3 0