Palo Alto Networks Interview Question

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

Interview Answers

Anonymous

Jun 8, 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

Anonymous

Jan 21, 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