Adobe Questions Collections



C++ 11 features : Lambda Functions, unique pointers and 1-2 more features which I dont remember exactly.


Virtual Functions,, How derived class functions can be accessed by pointer to base class.

Memory map of Derived Class when it is compiled : I gave vPointer and vTable explanation. He discussed in detail what all things get stored in vTable. Accessing Base Class functions .

Memory map of shared pointer object on compilation.


How is reference count shared between shared pointers ? What happens when copy constructor of shared pointer called.

Then came Mutex, Sempahores and Condition Variables. Wait and Notify purpose. When to use Condition variables.
Spurious wake up in case of wait() : This I did not know. He explained the term and its consequences, and why condition wait is in while loop rather than if check.
He asked about std::promise() and std::future(). Write code for set() of promise and get() of future and synchronize between them using lock and condition variables.
In the above discussion he also asked about RAII concept and stack unwinding in case of crash when mutex is locked.
Round 3: F2F Technical
He asked about current projects. Asked me to explain the architecture of the current project which I had done in C++.
Then He asked me to design an SDK which can handle concurrent calls from application : I proposed mutithreaded design for handling concurrent calls to the sdk. He asked me to draw class structures LLD . I explained design of ThreadPool factory class and how would you manage thread creation and destruction and other classes as well. But couldn’t meet his expectation. Not sure what he was looking for. I found the guy very weak in communication, considering him being at one of the higher positions in Adobe.




































































































Comments

Popular posts from this blog

[16 Feb 2020] Given an array where every element occurs three times, except one element which occurs only once.

Which data structure is used in redo-undo feature?

Important Program Collection