Question Bank
Filter real, curated interview questions by topic, difficulty, and type. Open any question to practice and rate your confidence.
Filter by company and topic1 active
RecentMost viewed
21 questionsFree9Locked12
- Implement a thread-safe asynchronous logger in Java that lets many threads write log entries concurrently while a single writer thread flushes them to disk efficiently.AdvancedOperating Systems· coding₹499 (Pro plan required)Reported frequent at Databricks
- Implement a thread-safe rate limiter in Java that allows at most N operations per second, callable safely from many threads.AdvancedOperating Systems· coding₹499 (Pro plan required)Reported frequent at Databricks
- Implement a bounded blocking queue (producer-consumer) from scratch using locks and condition variables.AdvancedOperating Systems· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Databricks
- Microsoft OA output prediction: What does this C-style snippet print? int i = 5; printf("%d", i++ + ++i);AdvancedOperating Systems· multiple choice₹99 (Interview Prep or Pro plan required)
- Apple OA output prediction: In C, given 'int arr[5]; ' what does 'sizeof(arr)/sizeof(arr[0])' evaluate to on a typical platform?IntermediateOperating Systems· multiple choiceFree
- What is the key difference between a process and a thread?BeginnerOperating Systems· multiple choiceFree
- Which condition is NOT one of the four Coffman conditions necessary for a deadlock?IntermediateOperating Systems· multiple choiceFree
- Under a non-preemptive Shortest Job First (SJF) scheduler, what problem can long processes suffer?IntermediateOperating Systems· multiple choiceFree
- What is the purpose of the TLB (Translation Lookaside Buffer) in a paged memory system?IntermediateOperating Systems· multiple choice₹99 (Interview Prep or Pro plan required)
- In the classic producer-consumer problem, why are counting semaphores (empty and full) plus a mutex used together?AdvancedOperating Systems· multiple choice₹99 (Interview Prep or Pro plan required)
- Which page replacement algorithm can suffer from Belady's anomaly, where increasing the number of frames increases the number of page faults?AdvancedOperating Systems· multiple choice₹99 (Interview Prep or Pro plan required)
- What distinguishes a mutex from a binary semaphore, despite both having two states?AdvancedOperating Systems· multiple choice₹99 (Interview Prep or Pro plan required)
- What is thrashing in an operating system?IntermediateOperating Systems· multiple choiceFree
- What is thrashing in an operating system, and how can it be prevented?IntermediateOperating Systems· conceptual₹99 (Interview Prep or Pro plan required)
- What is the difference between a mutex and a semaphore?IntermediateOperating Systems· comparisonFree
- What is a page fault, and what happens step by step when one occurs?IntermediateOperating Systems· how it works₹99 (Interview Prep or Pro plan required)
- Can two infinite loops run in parallel on a single-core machine? Explain what the OS actually does.IntermediateOperating Systems· conceptualFree
- How would you detect a memory leak in a running application?IntermediateOperating Systems· troubleshooting₹99 (Interview Prep or Pro plan required)
- What is the difference between a process and a thread?BeginnerOperating Systems· comparisonFreeReported frequent at Cognizant
- How can deadlocks be prevented, avoided, detected and recovered from?IntermediateOperating Systems· conceptual₹99 (Interview Prep or Pro plan required)Reported frequent at Wipro
- What is paging in an operating system, and why is it used?BeginnerOperating Systems· conceptualFree