Pergunta de entrevista da empresa Palo Alto Networks

1. What is the difference between a semaphore and a mutex?

Respostas da entrevista

Sigiloso

8 de jun. de 2017

Both serve to synchronize access to a shared resource by multiple threads. The first 'pends' till the resource is available and the producer 'signals' when done; the second acquires the lock, uses the resource and releases the lock.

1

Sigiloso

21 de jan. de 2021

It's essential to demonstrate that you can really go deep... there are plenty of followup questions and (sometimes tangential) angles to explore. There's a lot of Senior Software Engineer experts who've worked at Palo Alto Networks, who provide this sort of practice through mock interviews. There's a whole list of them curated on Prepfully. prepfully.com/practice-interviews