What should you focus on for an operating systems interview?
Should you start with processes and threads?
Start with processes, threads, and shared data. This topic appeared in 53 of 206 interviews. The most asked question compared processes and threads and asked what problems arise when threads share data.
Check whether you can answer these questions:
- How do processes and threads share data?
- What problems can arise when threads update a shared structure?
- When would you choose multiprocessing over multithreading?
In these interviews, the choice between multiprocessing and multithreading also came up as a follow-up to the process-and-thread comparison.
How much memory knowledge should you cover?
Memory management and data layout appeared in 45 of 206 interviews. Questions covered virtual memory and paging, along with how variables, objects, and collections are stored. Go beyond defining the heap and stack.
- Can you explain what virtual memory is?
- Can you compare the JVM heap, stack, and Metaspace?
- Can you explain value types and reference types, including their storage?
- Can you describe parameter passing and copying?
- Can you explain the memory layout of objects and collections?
What should you know about resource lifetimes?
Garbage collection and resource management appeared in 41 of 206 interviews. Choose the checks that match your language or runtime:
- Can you explain how Java garbage collection works?
- Can you compare
unique_ptr,shared_ptr, andweak_ptrand say when you would use each? - Can you explain how destructors and disposal manage resources?
- Can you describe reference cycles and subscription lifetimes?
These questions cover both memory cleanup and the lifetime of other resources.
Can you explain how you would investigate a memory problem?
The troubleshooting questions covered resource monitoring, profiling tools, heap dumps, retained objects, and allocation overhead.
Can you describe how you would investigate a memory leak? Say which profiling tools you would use and what you would examine in a heap dump. Can you explain how you would look for retained objects? Also check whether you can discuss caching and allocation overhead, rather than only define a memory leak.
Should you prepare for large files and coding tasks?
For large data and out-of-memory questions, check whether you can explain streaming, batching, backpressure, and container memory limits.
Coding tasks appeared in 3 of 206 interviews. Use these tasks to test yourself:
- Write a script that checks a process’s status and logs the result.
- Write a loop that reads from a file and writes its contents to another.
- Write code that sends standard output to a file.
- Process a file of URLs that cannot fit in memory. Produce a file containing each unique URL and its count.
Who gets asked Operating Systems
The 20 most asked Operating Systems questions
Counted by interview, not by mention: a question asked twice in one conversation counts once.
How do processes and threads differ, and what problems arise when threads share data?
Asked in 34 of 206 interviews · last asked Oct 23 · Concept · Junior
Show answer
A process is a running program with its own address space; a thread is an execution path within a process. Threads share process memory but have separate stacks and CPU registers. Shared data can cause race conditions, lost updates, or inconsistent results. Synchronization protects shared data, but incorrect locking can cause deadlocks.
- Processes normally isolate memory; sharing data requires communication or explicitly shared memory.
- Threads share code, heap memory, and resources such as open files.
- Creating threads and switching between them is usually cheaper than doing so with processes.
- Use locks or suitable atomic operations for shared updates; keep lock ordering consistent to avoid deadlocks.
What the interviewer checks: The interviewer checks whether you understand memory isolation, shared resources, and safe access to shared data.
Other ways it was asked
- “What is the difference between a process and a thread?”
- “What is the difference between a thread and a process?”
- “In your own words, what is the difference between a process and a thread in an operating system?”
When would you choose multiprocessing over multithreading?
Asked in 21 of 206 interviews · last asked Oct 23 · Scenario · Mid-level
Show answer
I would choose multiprocessing for CPU-heavy work when the language runtime limits threads from running it in parallel, or when tasks need stronger isolation. Processes can use separate CPU cores, but they cost more memory and make data sharing harder. Threads often suit I/O-heavy work or tasks that share data.
- Processes have separate address spaces, giving stronger memory and fault isolation.
- Threads can also run in parallel across cores if the runtime allows it.
- Process creation and communication usually cost more than creating threads and sharing memory.
- Multiprocessing works best when tasks are independent enough to outweigh communication costs.
What the interviewer checks: The interviewer is checking whether you can weigh parallelism, isolation, and communication costs for the workload.
Other ways it was asked
- “When would you choose multiple processes instead of multiple threads?”
- “When would you choose to use multiple processes?”
- “When would you choose multiprocessing over threading for a specific task?”
How does Java garbage collection work, and how do you investigate garbage collection and memory problems?
Asked in 7 of 206 interviews · last asked Oct 16 · Concept · Junior
Show answer
Java garbage collection reclaims heap memory from objects no longer reachable from GC roots, such as live threads and static fields. It can cause pauses and use CPU; behavior depends on the JVM and collector. I examine GC logs, allocation rates, and heap usage, then use heap dumps and profiling to find the cause.
- Frequent collections can indicate heavy allocation; growing heap usage after collection can suggest retained objects.
- Use heap dumps to inspect retained sizes and paths to GC roots.
- Java 9 and later support GC logging with -Xlog:gc*; older versions use different flags.
- Check native memory too: an OutOfMemoryError does not always mean the Java heap is full.
What the interviewer checks: The interviewer checks whether you understand object reachability, GC performance costs, and how to diagnose memory problems using evidence.
Other ways it was asked
- “What is garbage collection, and how can it affect the performance of a Java application?”
- “What is garbage collection in .NET?”
- “Can you explain garbage collection?”
What are the JVM memory areas, and how do the heap, stack, and Metaspace differ?
Asked in 6 of 206 interviews · last asked Oct 22 · Concept · Senior
Show answer
The JVM has a shared heap and method area, plus per-thread stacks, program counters, and native method stacks. The heap holds objects and arrays; stacks hold method calls, local variables, and temporary results. In HotSpot Java 8 and later, Metaspace stores class metadata in native memory as part of the method area.
- The heap is shared across threads; garbage collection reclaims unreachable objects.
- Each thread has its own Java stack; method calls create frames containing values and object references.
- Metaspace is outside the heap; class unloading can release its metadata.
- Deep calls can cause StackOverflowError; exhausted heap or Metaspace can cause OutOfMemoryError.
What the interviewer checks: The interviewer checks whether you understand what each area stores, which areas threads share, and how memory is released.
Other ways it was asked
- “How is memory structured inside the Java JVM?”
- “How does the JVM memory model work?”
- “What are the heap, stack, and Metaspace in the JVM, and how do they differ?”
How do value types and reference types differ, including how they are stored in memory?
Asked in 4 of 206 interviews · last asked Sep 10 · Concept · Junior
Show answer
In C#, value-type variables hold values; reference-type variables hold references to objects. Assignment copies the value or reference, so copied references share an object. Value types can live on the stack or inside heap objects. Reference-type objects live on the managed heap; their references can be stored on the stack or heap.
- Structs and enums are value types; classes, arrays, and strings are reference types.
- Value type does not mean stack storage. Storage depends on where the value is used.
- Boxing copies a value into an object on the managed heap.
- Copying a struct copies its fields; reference fields still point to the same objects.
What the interviewer checks: The interviewer checks whether you understand copying, shared objects, and why type alone does not determine storage.
Other ways it was asked
- “Do you know the difference between reference types and value types?”
- “Tell me a bit about the differences between value types and reference types.”
- “What is the difference between reference types and value types?”
How do processes and threads share data, and what does that mean for safely updating shared structures?
Asked in 3 of 206 interviews · last asked Apr 4 · Concept · Senior
Show answer
Processes normally have separate memory and share data through messages or explicitly shared memory. Threads share a process's address space, though language runtimes may isolate their variables. Updates to shared structures need synchronization, such as locks, to prevent races; a read followed by a write is not automatically one safe operation.
- Changing a normal variable in one process does not change it in another.
- Protect the whole shared update, not just individual reads or writes.
- Node.js workers isolate JavaScript objects; messages usually copy data, while SharedArrayBuffer allows shared memory.
- Python offers multiprocessing.Queue and manager-backed dictionaries; the GIL does not make compound dictionary updates safe.
What the interviewer checks: The interviewer checks whether you understand memory isolation, data-sharing methods, and how to prevent race conditions.
Other ways it was asked
- “How do you share data between processes compared to sharing data between threads?”
- “In Python, what are the key differences between a process and a thread in terms of memory isolation and sharing data structures such as a queue or dictionary?”
- “How is memory shared or not shared between threads and processes, and what does that imply for safely updating a shared dictionary?”
What is virtual memory?
Asked in 3 of 206 interviews · last asked Oct 12 · Concept · Junior
Show answer
Virtual memory gives each process its own address space, separate from physical RAM. The operating system and hardware map virtual addresses to physical memory. This helps isolate processes and manage memory. It can also let programs use more memory than available RAM by moving less-used pages to disk.
- Virtual addresses are translated to physical addresses, usually through page tables.
- Memory protection helps prevent one process from accessing another process’s memory.
- A page fault may occur when a needed page is not in RAM.
- Frequent swapping between RAM and disk can slow programs down.
What the interviewer checks: The interviewer is checking whether you understand address translation, process isolation, and the role of disk-backed memory.
Other ways it was asked
- “What is virtual memory and why do we use it?”
How do unique_ptr, shared_ptr, and weak_ptr differ, and when would you use each?
Asked in 3 of 206 interviews · last asked Oct 4 · Concept · Mid-level
Show answer
std::unique_ptr owns an object alone; use it by default when ownership is not shared. std::shared_ptr shares ownership and deletes the object when the last shared owner releases it. std::weak_ptr observes a shared_ptr-managed object without keeping it alive; use it to break ownership cycles or access an object that may be gone.
- unique_ptr cannot be copied, but moving it transfers ownership.
- shared_ptr can be copied; reference counting adds memory and runtime costs.
- weak_ptr::lock() returns a shared_ptr, or an empty one if the object has expired.
- shared_ptr manages lifetime; it does not make access to the object thread-safe.
What the interviewer checks: The interviewer checks whether you can choose clear ownership rules and avoid leaks or access to destroyed objects.
Other ways it was asked
- “What are the key differences between std::unique_ptr and std::shared_ptr in C++?”
- “What is the difference between std::unique_ptr and std::shared_ptr, and when would you choose one over the other?”
- “Could you expand on how you decide between using unique_ptr, shared_ptr, and weak_ptr in a real system?”
What is the difference between an HDD and an SSD?
Asked in 3 of 206 interviews · last asked Sep 3 · Concept · Junior
Show answer
An HDD stores data on spinning magnetic disks and uses a moving head to read and write. An SSD stores data in flash memory and has no moving parts. SSDs are usually faster, quieter, and more resistant to physical shocks. HDDs usually cost less per unit of storage.
- Both keep data when power is off.
- SSDs have lower access delays, especially for small reads and writes at different locations.
- HDDs are often cheaper for storing large amounts of data.
- SSD flash cells have limited write cycles; both types can fail.
What the interviewer checks: The interviewer is checking whether you understand how the storage technology affects speed, cost, and durability.
Other ways it was asked
- “What is the difference between SSD and HDD?”
What is an operating system?
Asked in 2 of 206 interviews · last asked Aug 6 · Concept · Junior
Show answer
An operating system is system software that manages a computer’s hardware and provides services for applications. It manages the CPU, memory, files, and input and output devices. It also controls access to resources so programs can run safely and share the computer.
- Manages hardware resources such as CPU time, memory, and devices.
- Provides services that applications use through system calls.
- Manages files and controls access to protect data and programs.
What the interviewer checks: The interviewer checks whether you understand the operating system’s role between applications and hardware.
What is a kernel?
Asked in 2 of 206 interviews · last asked Oct 12 · Concept · Junior
Show answer
The kernel is the core part of an operating system. It manages CPU time, memory, and devices. Programs use system calls to request its services, and it helps keep programs from interfering with each other.
- Schedules processes and threads to share CPU time.
- Manages memory and controls access to hardware.
- Provides system calls for programs to request operating system services.
- Runs with privileges that ordinary programs do not have.
What the interviewer checks: The interviewer is checking whether you understand the kernel’s role in managing resources and connecting programs to hardware.
Other ways it was asked
- “What is a kernel in an operating system?”
What is the difference between CPU-bound and I/O-bound tasks?
Asked in 2 of 206 interviews · last asked Sep 29 · Concept · Mid-level
Show answer
CPU-bound tasks spend most of their time doing calculations. I/O-bound tasks spend most of their time waiting for data, such as disk reads or network responses. CPU-bound tasks benefit mainly from faster processing, while I/O-bound tasks benefit mainly from faster I/O or overlapping work with waiting.
- The difference is which resource limits the task's speed.
- Image processing is often CPU-bound; downloading files is often I/O-bound.
- Concurrency can overlap I/O waits; CPU-heavy work needs available CPU cores to run in parallel.
- A task can switch between CPU-bound and I/O-bound phases.
What the interviewer checks: The interviewer checks whether you can identify the main bottleneck and choose a suitable way to improve performance.
Other ways it was asked
- “Can you please explain the difference between IO-bound and CPU-bound tasks?”
What is the difference between a process and a service in Linux?
Asked in 2 of 206 interviews · last asked Oct 7 · Concept · Junior
Show answer
A process is a running instance of a program, with its own process ID (PID). A service is a managed task that provides a function, such as a web server, usually in the background. A service can use one or more processes and is often managed by systemd.
- Processes can run in the foreground or background; not every background process is a service.
- Service managers can start, stop, and restart services, and start them at boot.
- Some services run continuously; others finish after completing a task.
What the interviewer checks: The interviewer checks whether you distinguish a running program from a managed system function.
Other ways it was asked
- “What are Linux processes and services, and how do they differ?”
What is the difference between shallow and deep copying, and when does it matter for nested objects?
Asked in 2 of 206 interviews · last asked Aug 14 · Concept · Junior
Show answer
A shallow copy creates a new outer object but keeps references to the same nested objects. A deep copy recursively copies nested objects, so changes to copied mutable data do not affect the original. This matters when editing nested lists or objects, such as during ML preprocessing.
- Changing a shared nested object affects both shallow copies.
- Replacing an item in the copied outer container does not change the original container.
- Deep copying usually takes more time and memory.
- In Python, use copy.copy() for shallow copying and copy.deepcopy() for deep copying.
Pythonimport copy original = [[1, 2], [3, 4]] shallow = copy.copy(original) deep = copy.deepcopy(original) shallow[0][0] = 99 print(original) # [[99, 2], [3, 4]] print(deep) # [[1, 2], [3, 4]]What the interviewer checks: The interviewer checks whether you understand shared references and can avoid unintended changes to nested data.
Other ways it was asked
- “What's the difference between a shallow copy and a deep copy, and why does it matter when copying arrays or objects?”
- “In Python, what's the practical difference between a shallow copy and a deep copy of a nested list, and when would it matter in an ML preprocessing pipeline?”
How do NumPy views and copies differ, and how can you check whether a slice shares memory?
Asked in 2 of 206 interviews · last asked Jun 3 · Concept · Mid-level
Show answer
A NumPy view shares its data with the original array, while a copy has separate data. Changing shared elements through a view also changes the original. Use np.shares_memory(original, sliced) to check for shared memory, and sliced.copy() when you need independent data.
- Basic slicing returns a view; integer-array and Boolean indexing return copies.
- np.shares_memory checks whether two arrays actually share memory.
- np.may_share_memory is conservative: True means sharing is possible, not certain.
- The .base attribute alone does not prove that two arrays share memory.
Pythonimport numpy as np original = np.arange(6) view = original[1:4] copy = view.copy() print(np.shares_memory(original, view)) # True print(np.shares_memory(original, copy)) # False view[0] = 99 print(original[1], copy[0]) # 99 1What the interviewer checks: The interviewer is checking whether you understand shared array data and can prevent accidental changes.
Other ways it was asked
- “In NumPy, how does a view differ from a copy, and how can you tell which one you got after slicing?”
- “In NumPy, what's the difference between a view and a copy, and how do you prevent accidental data mutation when slicing?”
- “How would you check in code whether a sliced NumPy array shares memory with the original array?”
What happens during boxing in C#, where is the object allocated, and how does it affect performance?
Asked in 2 of 206 interviews · last asked Aug 6 · Concept · Mid-level
Show answer
Boxing converts a value type, such as int, into an object containing a copy of its value. The boxed object is normally allocated on the managed heap. Frequent boxing adds allocation and copying costs and creates more work for the garbage collector.
- Passing an int to a method parameter of type object causes boxing.
- Changing the original value does not change the boxed copy.
- Generic collections, such as List<int>, avoid boxing when storing integers.
Codeint value = 42; object boxed = value; // Boxing: copies 42 into an object. value = 99; System.Console.WriteLine(boxed); // Prints 42.What the interviewer checks: The interviewer is checking whether you understand value copying, heap allocation, and the performance cost of boxing.
Other ways it was asked
- “What happens when an integer value is passed to a C# method that accepts an object?”
- “Where is the object allocated when a C# value type is passed as an object?”
- “What is boxing in C#, and how can frequent boxing affect application performance? Give a concrete example.”
How do std::vector reserve and resize differ in allocation, capacity, size, and element values?
Asked in 2 of 206 interviews · last asked Oct 4 · Concept · Junior
Show answer
reserve(n) can increase capacity, but leaves size and element values unchanged. It reallocates only when n exceeds capacity. resize(n) changes size, constructing added elements or destroying removed elements; it reallocates only if the new size exceeds capacity. Added elements are default-inserted, or copied from the value supplied to resize(n, value).
- Capacity counts available element slots; size counts live elements. Reserved slots are not valid elements to access.
- Reallocation moves or copies existing elements into new storage, invalidating all existing pointers, references, and iterators.
- Neither call reduces capacity. After growth, capacity may be greater than n.
- With the standard allocator, resize(n) adds zero-valued integers; class elements use their default constructors.
What the interviewer checks: The interviewer checks whether you distinguish allocated storage from live elements and understand construction, destruction, and reallocation.
Other ways it was asked
- “In C++, when you call reserve(n) on a vector, what exactly happens in memory if n is greater than the current capacity?”
- “In a vector, what's the difference between reserve(n) and resize(n) in terms of element construction, destruction, and observable size?”
- “What is the difference between reserve and resize on a std::vector, and what happens to size and element values in each case?”
How is a doubly linked list node structured, and what memory overhead does it have versus an array?
Asked in 2 of 206 interviews · last asked Oct 17 · Concept · Senior
Show answer
A doubly linked list node stores a value and links to the previous and next nodes. Each node needs extra memory for these two links, plus possible allocation overhead and padding. In Java, LinkedList nodes hold three references: item, previous, and next. Compared with ArrayList, each element adds two link references and a separate node object's overhead.
- ArrayList stores element references in one backing array, with no separate node objects.
- A dynamic array may reserve unused capacity, which also costs memory.
- Exact overhead depends on reference size, object headers, alignment, and the runtime.
What the interviewer checks: The interviewer checks whether you can describe node fields and compare their memory cost with array storage.
Other ways it was asked
- “How is a doubly linked list node laid out in memory, what references or fields does it store, and what extra overhead does it have compared with a dynamic array?”
- “In Java, how is a LinkedList node structured, what references does it hold, and what extra memory cost does that imply per element versus an ArrayList?”
Can you explain what pointers point to and how they are used in C and C++?
Asked in 2 of 206 interviews · last asked Oct 9 · Concept · Junior
Show answer
In C and C++, a pointer stores the address of an object or function, or a null value that points to nothing. Pointers let code access objects indirectly, modify a caller’s data, and work with arrays and dynamic memory. They are also used to build structures such as linked lists and trees.
- Use & to get an object’s address and * to access the object through a pointer.
- Only dereference pointers to live, valid objects; never dereference null, uninitialized, or dangling pointers.
- Pointer arithmetic stays within one array or one position past it; never dereference that past-the-end position.
- C commonly uses malloc and free; C++ usually prefers containers and smart pointers for dynamic memory.
Codeint value = 10; int *ptr = &value; // ptr points to value *ptr = 20; // value is now 20What the interviewer checks: The interviewer checks whether you understand addresses, indirect access, and safe use of memory.
Other ways it was asked
- “Can you explain pointers in C++, how they are used, and why they are useful?”
- “What are pointers in C++?”
What are static variables?
Asked in 2 of 206 interviews · last asked Dec 4 · Concept · Junior
Show answer
In Java, static variables belong to a class, not to each object. All objects of that class share the same variable. You can access it through the class name without creating an object.
- Declared with the static keyword.
- Useful for shared state, such as a count of objects created.
- Static does not mean constant; the variable can change unless it is also final.
- Static variables are not automatically thread-safe; shared updates may need synchronization.
What the interviewer checks: The interviewer checks whether you understand class-level state versus separate state for each object.
Other ways it was asked
- “What are static variables in Java?”
Operating system basics interview questions
Review operating systems, kernels, Linux and Windows, hardware, networking, and how compilers, linkers, and loaders help run programs. 18 questions.
What are the different types of target code generated by a compiler?
Asked once · last asked Mar 27 · Concept · Junior
What tools are commonly used alongside a compiler, such as preprocessors, linkers, and loaders?
Asked once · last asked Mar 27 · Concept · Junior
What alternatives to rundll32.exe can be used to execute a DLL on Windows?
Asked once · last asked Jun 9 · Concept · Mid-level
Other ways it was asked
- “When would you use rundll32.exe versus regsvr32.exe to execute a DLL, and what type of DLL is appropriate for each?”
What happens when you enter a URL in a browser and press Enter, including interrupts, operating-system processing, HTTP/HTTPS communication, and server-side request handling?
Asked once · last asked Aug 25 · Concept · Senior
Other ways it was asked
- “What happens when you enter a URL such as google.com in Chrome and press Enter, from browser and operating-system processing through HTTP/HTTPS communication to server-side request handling?”
Can you tell me the purpose of an operating system?
Asked once · last asked Jan 29 · Concept · Junior
What difference do you see between informatics and computer science?
Asked once · last asked Feb 26 · Concept
What is the function of RAM in a computer?
Asked once · last asked Apr 4 · Concept · Junior
What is the role of a compiler in programming?
Asked once · last asked Apr 4 · Concept · Junior
What is Linux?
Asked once · last asked May 4 · Concept · Junior
What is an exit code, and what does it indicate?
Asked once · last asked May 19 · Concept · Junior
How can you execute a DLL file on Windows?
Asked once · last asked Jun 9 · Concept · Mid-level
What is the primary function of a device driver?
Asked once · last asked Jul 16 · Concept · Junior
Show 4 more
What is the difference between an operating system and a kernel?
Asked once · last asked Aug 6 · Concept · Junior
What is the difference between RAM and storage?
Asked once · last asked Sep 2 · Concept · Junior
What is the difference between Linux and Unix?
Asked once · last asked Dec 11 · Concept · Junior
What is the basic difference between Linux and Windows OS?
Asked once · last asked Sep 19 · Concept · Junior
Processes, threads and CPU scheduling interview questions
Compare processes and threads, then explore scheduling, shared data, synchronization, deadlocks, asynchronous execution, and process-control commands. 27 questions.
How would you write a script that checks a process’s status every two minutes and logs the result?
Asked once · last asked Aug 14 · Write code · Junior
What methods can be used to resolve race conditions in an RTOS?
Asked once · last asked May 20 · Concept · Mid-level
Write a script that checks a process’s status and saves the result.
Asked once · last asked Aug 14 · Write code · Junior
How should the time quantum q be chosen in round-robin scheduling relative to context-switch time s and average CPU burst time p?
Asked once · last asked Sep 4 · Concept · Mid-level
Other ways it was asked
- “What happens in round-robin scheduling when the time quantum q equals the context-switch time s?”
In .NET, how do threading and memory usage differ between synchronous code and code using async/await?
Asked once · last asked Sep 29 · Concept · Senior
What is a batch process, and what would you do if one failed?
Asked once · last asked Oct 14 · Scenario · Mid-level
What is multitasking?
Asked once · last asked Mar 16 · Concept · Junior
What is it called when two processes wait for each other indefinitely?
Asked once · last asked Mar 16 · Concept · Junior
How can a deadlock between processes be resolved?
Asked once · last asked Mar 16 · Scenario · Junior
What techniques can be used to prevent deadlocks?
Asked once · last asked Mar 16 · Concept · Junior
How would you terminate a process in Windows using the graphical interface rather than commands?
Asked once · last asked May 13 · Tooling · Junior
What states does a thread go through from creation to termination? What are the main stages in its life cycle?
Asked once · last asked Jun 17 · Concept · Junior
Show 10 more
What is the name of the process state in which a process is waiting to be assigned to a processor?
Asked once · last asked Jul 16 · Concept · Junior
Which CPU scheduling algorithm allocates the CPU to the process that requests it first?
Asked once · last asked Jul 16 · Concept · Junior
What are the necessary conditions for a deadlock?
Asked once · last asked Jul 29 · Concept · Junior
What is scheduling?
Asked once · last asked Aug 26 · Concept · Junior
What happens when you run `kill -9 1234`?
Asked once · last asked Aug 30 · Concept · Junior
What does the `wait()` system call do in C, how does it work, and why is it useful?
Asked once · last asked Sep 1 · Concept · Mid-level
What conditions make round-robin scheduling effective for managing processes?
Asked once · last asked Sep 4 · Concept · Junior
What is an operating system process?
Asked once · last asked Sep 9 · Concept · Junior
What is the difference between multithreading and multitasking?
Asked once · last asked Oct 12 · Concept · Junior
What are semaphores?
Asked once · last asked Oct 12 · Concept · Junior
Memory management, stack and heap interview questions
Explore virtual memory, paging, allocation, pointers, and how variables, objects, and collections are stored and copied. 58 questions.
How much memory does a string occupy in C#?
Asked once · last asked Sep 10 · Concept · Mid-level
Other ways it was asked
- “How much memory does a string field occupy within a C# object?”
How can you use one method for multiple value types in C# while avoiding boxing, rather than writing a separate method for each type?
Asked once · last asked Jan 28 · Concept · Senior
In a loop with a counter, what is the counter variable's scope, and how long does it remain in memory?
Asked once · last asked Mar 24 · Concept · Junior
What is copy-on-write in PHP, and how does it affect array and string behavior when values are passed to methods?
Asked once · last asked Mar 27 · Concept · Senior
How does Python represent list elements internally to support values of different types?
Asked once · last asked Mar 31 · Concept · Senior
When normalizing a product list, should you create a new object for each product or reuse the original product object, and why?
Asked once · last asked Apr 28 · Concept · Mid-level
What is the default stack size for a .NET thread?
Asked once · last asked May 7 · Concept · Mid-level
Could you explain the differences between stack and heap allocation in C++, and how RAII helps manage resources safely?
Asked once · last asked Jun 15 · Concept · Junior
What is the difference between creating a string with new and using a string literal in Java?
Asked once · last asked Jul 16 · Concept · Mid-level
How would you explain copy-on-write in Swift for Array and Data, and what practical steps help avoid unintended copies for performance-critical code?
Asked once · last asked Aug 4 · Concept · Senior
In a typical function call, what's the difference between passing a parameter by value versus by reference?
Asked once · last asked Aug 14 · Concept · Junior
How do mutability and immutability work under the hood in Python?
Asked once · last asked Aug 25 · Concept · Senior
Other ways it was asked
- “How does mutability and immutability work under the hood in Python?”
Show 36 more
What happens on a page fault? Walk me through it step by step.
Asked once · last asked Sep 6 · Concept · Mid-level
What are the stack and heap in memory, and why are they separate?
Asked once · last asked Sep 10 · Concept · Mid-level
Where is a byte field, such as age, stored within a .NET User object?
Asked once · last asked Sep 10 · Concept · Mid-level
In .NET, is where a value is stored determined by its type, or by other factors?
Asked once · last asked Sep 10 · Concept · Mid-level
In C#, what happens to memory and parameter passing when a method is called with two int variables?
Asked once · last asked Sep 10 · Concept · Mid-level
How does .NET determine the structure of data stored in an object's memory?
Asked once · last asked Sep 10 · Concept · Senior
Why should you account for string memory usage when estimating the size of a class instance?
Asked once · last asked Sep 10 · Concept · Mid-level
In C#, what happens to memory when a struct contains a string field?
Asked once · last asked Sep 10 · Concept · Senior
In Java, when an ArrayList grows past capacity, what happens to its backing storage and what does that imply for existing element references and indices?
Asked once · last asked Sep 11 · Concept · Mid-level
In C++, in a hash map that uses separate chaining, what exactly is stored in the bucket array and how are the key value pairs laid out in memory?
Asked once · last asked Sep 21 · Concept · Mid-level
In C++, what are the differences between std::vector and std::deque, including memory layout and push/pop complexity at the front and back?
Asked once · last asked Oct 4 · Concept · Mid-level
In a std::vector, what happens to the addresses of existing elements after a reallocation, and which operations can trigger that reallocation?
Asked once · last asked Oct 4 · Concept · Senior
In an unordered_map, what exactly invalidates iterators, and does a rehash invalidate references and pointers to elements as well?
Asked once · last asked Oct 4 · Concept · Senior
How do doubly linked list pointers support splicing and reordering without moving or copying elements?
Asked once · last asked Oct 4 · Concept · Junior
Other ways it was asked
- “In a doubly linked list, what pointers does each node typically store, and which operations can be done without moving existing nodes in memory?”
- “In a doubly linked list, which operations can splice or reorder elements by only relinking pointers, with no element moves or copies, and what does that require about the nodes involved?”
When would you decide that iterative loops are safer than recursion?
Asked once · last asked Oct 6 · Concept · Junior
Could you differentiate between structures and unions with respect to memory?
Asked once · last asked Jan 22 · Concept · Junior
What is the difference between call by value and call by reference?
Asked once · last asked Aug 10 · Concept · Junior
What is a reference in Java?
Asked once · last asked Oct 8 · Concept · Junior
Other ways it was asked
- “Can you give an example of a reference in Java?”
What is the process called when a C# value type is converted to an object or another reference type?
Asked once · last asked Jan 28 · Concept · Junior
What is a variable?
Asked once · last asked Apr 28 · Concept · Junior
Are .NET references the same as pointers?
Asked once · last asked May 7 · Concept · Junior
Where is a static variable in C stored, and how does its storage differ from heap-allocated memory?
Asked once · last asked Jun 29 · Concept · Junior
What is the Java heap, and how is it used?
Asked once · last asked Jul 16 · Concept · Junior
What is thrashing?
Asked once · last asked Aug 6 · Concept · Junior
What is an MMU?
Asked once · last asked Aug 6 · Concept · Junior
Can you explain what a Windows page file is?
Asked once · last asked Aug 9 · Concept · Junior
What is the function of a pointer?
Asked once · last asked Sep 2 · Concept · Junior
What is heap memory?
Asked once · last asked Sep 4 · Concept · Junior
What is stack memory?
Asked once · last asked Sep 4 · Concept · Junior
Why do people say that a variable is stored on the stack in .NET?
Asked once · last asked Sep 10 · Concept · Mid-level
What is the string pool?
Asked once · last asked Oct 1 · Concept · Junior
How are pointers related to linked lists?
Asked once · last asked Oct 6 · Concept · Junior
Can you explain some page replacement algorithms?
Asked once · last asked Oct 12 · Concept · Junior
What causes a stack overflow error?
Asked once · last asked Oct 16 · Concept · Mid-level
What happens behind the scenes when a function is called?
Asked once · last asked Jan 22 · Concept · Junior
What happens when an argument is passed by reference, and how does the function access the caller's variable?
Asked once · last asked Jan 22 · Concept · Junior
Garbage collection and resource management interview questions
Questions cover garbage collection, RAII, smart pointers, destructors, disposal, ARC, reference cycles, and subscription lifetimes. 46 questions.
How do you prevent Angular subscription leaks, and when should you use async pipe versus manual unsubscribe?
Asked in 2 of 206 interviews · last asked Sep 16 · Scenario · Mid-level
Other ways it was asked
- “In Angular, how do you manage subscriptions in a component to avoid memory leaks, especially for long-lived streams such as router events or value changes?”
- “How do you prevent memory leaks from RxJS subscriptions in Angular components, and when would you prefer the async pipe versus manual unsubscribe?”
How do strong reference cycles cause Swift memory leaks, and how do you detect and break them?
Asked in 2 of 206 interviews · last asked Aug 17 · Concept · Mid-level
Other ways it was asked
- “In Swift, explain how ARC can still lead to memory leaks via strong reference cycles and how you typically detect and break them in production apps.”
- “How do you break a retain cycle between two classes?”
- “Does an unowned reference help break a retain cycle?”
How do C++ smart pointers manage memory, and when is manual memory management still necessary?
Asked in 2 of 206 interviews · last asked Oct 9 · Concept · Junior
Other ways it was asked
- “What are smart pointers?”
- “What are smart pointers in C++?”
- “How do smart pointers in C++ manage memory, and when does manual memory management remain necessary?”
How do you manage memory in C++?
Asked in 2 of 206 interviews · last asked Oct 14 · Concept · Mid-level
Other ways it was asked
- “How would you manage memory allocation in C?”
How does garbage collection work in Unity?
Asked once · last asked Sep 8 · Concept · Senior
How does garbage collection reclaim unused memory in .NET?
Asked once · last asked Jan 28 · Concept · Mid-level
When does a PHP object's destructor run, and how can you trigger its cleanup?
Asked once · last asked Mar 27 · Concept · Mid-level
Other ways it was asked
- “When is a PHP destructor called, and how does it work?”
- “How can you trigger a PHP object's destructor so that its cleanup logic runs?”
How would you handle a large PHP array that needs to be cleared periodically?
Asked once · last asked Mar 27 · Scenario · Mid-level
How does the .NET disposable pattern work, and when and how should you call Dispose?
Asked once · last asked Apr 2 · Concept · Mid-level
Other ways it was asked
- “What is the disposable pattern in .NET, and how does it work?”
- “When should you use the disposable pattern?”
- “What is the purpose of Dispose in .NET, and does it remove an object from memory?”
What is the difference between a finalizer and Dispose?
Asked once · last asked Apr 2 · Concept · Mid-level
How would you choose a garbage collector implementation for an application?
Asked once · last asked Apr 13 · Scenario · Senior
What memory-management differences between the JVM and iOS should Kotlin Multiplatform developers account for?
Asked once · last asked May 4 · Concept · Senior
Show 32 more
In what scenarios would you share functionality in Kotlin Multiplatform versus implement it natively on iOS to avoid memory-management issues related to object lifetimes?
Asked once · last asked May 4 · Scenario · Senior
Does Go use a garbage collector, an interpreter, or both?
Asked once · last asked Jun 9 · Concept · Junior
Other ways it was asked
- “Does Go have a garbage collector?”
In Node.js, what's the practical difference between EventEmitter's .on and .once methods, and how do you prevent listener leaks in long-lived processes?
Asked once · last asked Jul 3 · Tooling · Senior
Can you explicitly trigger garbage collection in Java, and is it guaranteed to run?
Asked once · last asked Jul 16 · Concept · Mid-level
Why can subscribing to an event cause a memory leak in Unity, and how would you detect and fix it?
Asked once · last asked Jul 17 · Scenario · Senior
When would you use weak versus unowned in Swift, and what failure modes should you consider?
Asked once · last asked Jul 20 · Concept · Senior
Other ways it was asked
- “How do you decide between weak and unowned for a reference, for example in delegates, closures, or parent-child relationships, and what failure modes are you guarding against?”
- “Pick one concrete example, such as a delegate, closure, or parent-child relationship, and walk me through when you'd use weak versus unowned there, and why.”
What does managed code mean in the .NET context, and specifically what does the CLR manage?
Asked once · last asked Aug 6 · Concept · Junior
Can value types such as structs and enums cause a retain cycle?
Asked once · last asked Aug 17 · Concept · Senior
Which types support reference counting in Swift?
Asked once · last asked Aug 17 · Concept · Mid-level
Should a Swift delegate reference be weak or strong, and why?
Asked once · last asked Aug 17 · Concept · Mid-level
Other ways it was asked
- “Can you define a delegate variable using a strong reference?”
- “Should a delegate variable be weak or strong, and why?”
What was Java's finalize() method intended for, and how did it work?
Asked once · last asked Sep 4 · Concept · Mid-level
Why does C# provide GC.Collect, and when might you use it?
Asked once · last asked Sep 21 · Concept · Mid-level
What happens internally to the control block of a std::shared_ptr when you copy the shared pointer and when you destroy one copy?
Asked once · last asked Sep 21 · Concept · Mid-level
Other ways it was asked
- “What happens internally to a std::shared_ptr control block when you copy it and when you destroy one copy?”
How does memory management in .NET and C# differ from memory management in C++?
Asked once · last asked Sep 29 · Concept · Senior
How would you use WeakMap or WeakSet to prevent memory leaks when associating metadata with DOM nodes or object keys?
Asked once · last asked Oct 3 · Concept · Senior
In C++, what is the rule of five, and which five special member functions does it refer to?
Asked once · last asked Oct 4 · Concept · Mid-level
How does garbage collection work in V8, including generational, minor, and major collection, and what constitutes a memory leak in JavaScript?
Asked once · last asked Oct 7 · Concept · Senior
Other ways it was asked
- “How does garbage collection work in V8, and what are generational, minor, and major garbage collection and a JavaScript memory leak?”
What is a unique pointer in C++, and how is it used?
Asked once · last asked Oct 9 · Concept · Junior
Other ways it was asked
- “What is a shared pointer in C++, and how is it used?”
How can a memory leak occur when using smart pointers in C++?
Asked once · last asked Oct 9 · Concept · Mid-level
What is the Rule of Three in C++?
Asked once · last asked Oct 9 · Concept · Mid-level
What are the benefits of registering an interface with its implementation and choosing its lifetime in the dependency injection container?
Asked once · last asked Oct 15 · Concept · Mid-level
What is the garbage collector in C#?
Asked once · last asked Sep 21 · Concept · Junior
Other ways it was asked
- “Can you explicitly invoke the garbage collector in C#?”
What is a garbage collector, and what is its purpose?
Asked once · last asked Mar 27 · Concept · Junior
When might a garbage collector not be used?
Asked once · last asked Mar 27 · Concept · Junior
What does the JavaScript garbage collector do?
Asked once · last asked Apr 4 · Concept · Junior
What is the difference between a garbage collector and an interpreter?
Asked once · last asked Jun 9 · Concept · Junior
What are some important rules and use cases for destructors in C++?
Asked once · last asked Jul 16 · Concept · Junior
What is memory management in Python?
Asked once · last asked Aug 12 · Concept · Junior
What do semantics and RAII mean in C++?
Asked once · last asked Aug 12 · Concept · Mid-level
Which .NET component determines when objects are released and memory is freed?
Asked once · last asked Sep 4 · Concept · Junior
In C#, does the garbage collector clean heap memory, stack memory, or both?
Asked once · last asked Sep 21 · Concept · Junior
What are the different types of garbage collectors?
Asked once · last asked Oct 16 · Concept · Senior
Other ways it was asked
- “Do you know about the different types of garbage collectors?”
File systems, storage and I/O interview questions
Check your knowledge of disks, SSDs, RAID, file systems, links, recovery, buffering, and file reading and writing. 16 questions.
What is the difference between a symbolic link and a hard link?
Asked in 2 of 206 interviews · last asked Aug 30 · Concept · Junior
Other ways it was asked
- “Explain symbolic links versus hard links.”
You are unable to write data to a hard drive and receive a “failed to write” error, even though the operating system and files are using only 1.5 TB of a 2 TB drive. What could be the problem?
Asked once · last asked Feb 3 · Scenario · Mid-level
How do RAID 5 and RAID 6 differ, and when would you use each?
Asked once · last asked Apr 6 · Concept · Mid-level
What are the advantages of NTFS over FAT?
Asked once · last asked May 4 · Concept · Junior
How would you implement here-document buffering in a mini shell, store the input, and justify your approach?
Asked once · last asked Jul 16 · Scenario · Mid-level
Other ways it was asked
- “How did you handle here-document buffering in a mini shell, how did you store the input, and why was that approach suitable?”
Does deleting a file from the desktop permanently erase it, or can it still be recovered?
Asked once · last asked Aug 20 · Concept · Junior
The disk is 100% full. What do you do?
Asked once · last asked Dec 11 · Scenario · Mid-level
Explain how synchronous I/O works internally.
Asked once · last asked Sep 18 · Concept · Senior
What is the advantage of SSD over a hard disk?
Asked once · last asked Sep 3 · Concept · Junior
Other ways it was asked
- “What are the disadvantages of SSD compared to a hard disk?”
What are virtual filesystems? Give an example.
Asked once · last asked Feb 22 · Concept · Junior
How do you distinguish a flat folder structure from a hierarchical one that contains subfolders?
Asked once · last asked Jun 9 · Concept · Junior
What is the C-SCAN algorithm?
Asked once · last asked Jul 29 · Concept · Junior
Show 3 more
Write a loop that reads from one file and writes its contents to another.
Asked once · last asked Jul 29 · Write code · Junior
Write code that writes standard output to a file.
Asked once · last asked Jul 29 · Write code · Junior
For configuring RAID 5, how many hard drives are required?
Asked once · last asked Aug 18 · Concept · Junior
Linux and Windows administration interview questions
Work through questions on booting, installation, deployment, hardware compatibility, server maintenance, containers, and operating system or device failures. 20 questions.
How would you troubleshoot blue screen errors and identify their root cause?
Asked in 2 of 206 interviews · last asked Oct 21 · Scenario · Mid-level
Other ways it was asked
- “How have you handled blue screen errors in the past?”
- “If a user calls saying their machine just crashed with a blue screen, what do you do from there?”
- “How do you handle recurrent blue screen errors and perform root cause analysis?”
How would you install an operating system on a personal computer, and how would that differ from installing it on 500 machines?
Asked once · last asked Feb 3 · Scenario · Mid-level
How does the Linux server boot process work?
Asked once · last asked Mar 26 · Concept · Mid-level
What is PXE, and how is it used to boot a server over the network?
Asked once · last asked Mar 26 · Concept · Junior
How do you install Axway Secure Transport? Walk me through the steps.
Asked once · last asked Jun 18 · Tooling · Mid-level
A user reboots a laptop and gets “no bootable device found.” What could cause it, and how would you fix it?
Asked once · last asked Aug 24 · Scenario · Mid-level
How do you identify a faulty drive in a server?
Asked once · last asked Sep 3 · Scenario · Mid-level
What happens when a container is created, from its creation through execution?
Asked once · last asked Sep 4 · Concept · Mid-level
How would you deploy an application across PCs with different system requirements?
Asked once · last asked Sep 19 · Scenario · Mid-level
Is there a Windows utility or command to scan and repair Windows components?
Asked once · last asked Oct 5 · Tooling · Mid-level
How would you troubleshoot an unresponsive taskbar or Start menu that is not launching?
Asked once · last asked Oct 7 · Scenario · Mid-level
If a computer failed operating system deployment, how would you connect to it and retrieve the logs?
Asked once · last asked Oct 20 · Scenario · Mid-level
Show 8 more
How do you make sure the hardware is supported before operating system deployment?
Asked once · last asked Oct 20 · Scenario · Mid-level
What software needs to be installed to run a program without Docker?
Asked once · last asked Jan 27 · Scenario · Junior
What is a BMC, and what role does it play in server management?
Asked once · last asked Mar 26 · Concept · Junior
How can you support a team with updating and maintaining server operating systems?
Asked once · last asked Jun 29 · Scenario · Mid-level
What is responsible for loading the operating system into main memory when a computer boots?
Asked once · last asked Jul 16 · Concept · Junior
How would you restart a production server safely?
Asked once · last asked Aug 21 · Scenario · Mid-level
What is the BIOS, and what does it do?
Asked once · last asked Aug 24 · Concept · Junior
What roles can Windows and Linux systems serve in infrastructure, and which tasks is each suited to supporting?
Asked once · last asked Sep 3 · Concept · Mid-level
Other ways it was asked
- “What roles did Windows and Linux systems serve in your infrastructure, and which tasks did each support?”
Memory safety and operating system security interview questions
Focus on buffer overflows, undefined behavior, dangling pointers, exploit debugging, memory protections, secure buffers, and Linux and Windows security. 16 questions.
What causes buffer overflows, and why can code write beyond a buffer's bounds?
Asked in 2 of 206 interviews · last asked May 8 · Concept · Mid-level
Other ways it was asked
- “What is a buffer overflow?”
- “What is the root cause of a buffer overflow vulnerability?”
- “Why can code write past the buffer’s bounds?”
From a highly technical standpoint, how does a buffer overflow attack work?
Asked once · last asked May 8 · Concept · Senior
What technical challenges can arise when reproducing a VLC buffer overflow in a lab?
Asked once · last asked May 8 · Scenario · Senior
How do you typically identify a stack buffer overflow?
Asked once · last asked May 23 · Scenario · Mid-level
Once you've identified the overflow, how do you observe the memory corruption in a debugger?
Asked once · last asked May 23 · Scenario · Senior
How do you determine the exact offset required to overwrite the instruction pointer?
Asked once · last asked May 23 · Concept · Senior
Once you have control of the instruction pointer, how do you approach bypassing memory protections like ASLR?
Asked once · last asked May 23 · Scenario · Senior
What is your understanding of networking fundamentals, including TCP/IP, DNS, VPNs, and firewalls, and of operating system security on Linux and/or Windows?
Asked once · last asked Jun 16 · Concept · Junior
How would you keep encrypted biometric images and temporary buffers secure and efficient in a Swift iOS application?
Asked once · last asked Jul 1 · Scenario · Mid-level
What causes undefined behavior in C++, and how could you avoid it?
Asked once · last asked Aug 12 · Concept · Mid-level
When handling a stream of data that must be stored securely, how would you manage memory and choose data structures?
Asked once · last asked Jan 23 · Scenario · Mid-level
How would you prevent or handle buffer overflows when working with data structures that store incoming data?
Asked once · last asked Jan 23 · Scenario · Mid-level
Show 4 more
What are the trade-offs of static memory allocation and hash maps when securely storing a stream of incoming data?
Asked once · last asked Jan 23 · Concept · Mid-level
What is Windows and what is Azure Cloud Security?
Asked once · last asked Aug 12 · Concept · Junior
Why doesn't Java expose explicit pointers or pointer arithmetic?
Asked once · last asked Aug 20 · Concept · Junior
Other ways it was asked
- “Why are pointers not allowed in Java?”
What is a dangling pointer?
Asked once · last asked Sep 2 · Concept · Junior
Memory leaks and performance troubleshooting interview questions
Examine resource monitoring, profiling tools, heap dumps, retained objects, memory leaks, allocation overhead, caching, and performance problems. 39 questions.
When working on a feature that requires complex state management or high-frequency updates, what is your process for optimizing performance and preventing memory leaks in a React and TypeScript environment?
Asked once · last asked Apr 16 · Scenario · Senior
Other ways it was asked
- “In a React and TypeScript feature with complex state or frequent updates, how would you identify and address performance bottlenecks or potential memory leaks?”
A hot path in your service is allocating heavily and pressuring the garbage collector. How would you minimize allocations and improve cache efficiency?
Asked once · last asked Mar 16 · Scenario · Senior
How would you investigate a PHP memory leak in a long-running process whose memory usage keeps increasing?
Asked once · last asked Mar 27 · Scenario · Senior
How would you investigate a sudden increase in memory usage when the cause is unknown?
Asked once · last asked Apr 13 · Scenario · Senior
How would you capture a Java heap dump or heap histogram to investigate memory usage?
Asked once · last asked Apr 13 · Tooling · Senior
How would you identify and fix a memory leak in a web application back end? What tools and methodologies would you use?
Asked once · last asked May 8 · Scenario · Senior
How do you profile a Java application to investigate memory or performance issues?
Asked once · last asked May 25 · Scenario · Mid-level
What practical implications does NumPy operating in C have for performance and memory compared with Python lists?
Asked once · last asked Jun 3 · Concept · Mid-level
When increasing memory is only a short-term fix for a Node.js application, what long-term fixes would you consider?
Asked once · last asked Jun 12 · Scenario · Mid-level
When debugging a complex system in C++ or optimizing a heavily populated scene in a game engine, what is your approach to identifying and fixing memory bottlenecks or frame-rate drops?
Asked once · last asked Jun 29 · Scenario · Senior
In a UITableView or UICollectionView showing remote images, what specific steps do you take to prevent off-screen image decode and resizing from blocking the main thread while keeping memory stable?
Asked once · last asked Jul 20 · Tooling · Senior
Specifically, what would you do about decode/downsampling, memory and caching, and canceling requests on view recycling in Android RecyclerView?
Asked once · last asked Jul 20 · Tooling · Senior
Show 27 more
When you implement your own image loader, how do you calculate an appropriate inSampleSize and choose the target decode size based on the view's measured dimensions and screen density?
Asked once · last asked Jul 20 · Tooling · Senior
Which operating system metrics are most important to monitor?
Asked once · last asked Jul 27 · Concept · Junior
Suppose you see rising p95 latency and memory in a Node.js API over several hours with no deploys. What is your step-by-step approach to confirm a memory leak and pinpoint the source?
Asked once · last asked Jul 27 · Scenario · Senior
When you compare heap snapshots, what specific signs do you look for, for example object types and retainers? And how do you trace them back to the owning module or request path?
Asked once · last asked Jul 27 · Scenario · Senior
In a Next.js app, what are the most common ways memory leaks happen on the server side around SSR or API routes, and what would you check first?
Asked once · last asked Jul 27 · Scenario · Senior
How would you profile and fix a memory issue in a PHP or Ruby on Rails application?
Asked once · last asked Jul 27 · Scenario · Senior
In pandas, how would you replace missing values in the `review_text` column with an empty string in place to save memory? Which operation is most appropriate, and why?
Asked once · last asked Aug 1 · Tooling · Junior
How do you debug a memory leak in a long-running service?
Asked once · last asked Aug 14 · Scenario · Senior
When you have a heap snapshot, how do you decide whether the top retained-size objects represent a real leak versus expected caching?
Asked once · last asked Aug 14 · Scenario · Senior
In a tight loop over a large list, what kinds of changes typically improve performance without changing complexity, such as reducing allocations or changing data structures or branch behavior?
Asked once · last asked Aug 14 · Concept · Senior
How do you troubleshoot a memory leak in a Kubernetes application?
Asked once · last asked Sep 4 · Scenario · Senior
Why might available memory remain low after garbage collection in Unity?
Asked once · last asked Sep 8 · Scenario · Senior
When configuring and managing system resources on NixOS, how do you ensure efficient memory management and optimize performance for low-level development tasks?
Asked once · last asked Sep 16 · Tooling · Senior
How can tools such as Valgrind help detect memory leaks and diagnose memory-safety or synchronization issues in multithreaded NixOS applications?
Asked once · last asked Sep 16 · Tooling · Senior
How would you track cache evictions and memory pressure if Redis is handling high-volume data?
Asked once · last asked Sep 21 · Tooling · Senior
How would you track memory growth and prevent leaks in an asynchronous environment?
Asked once · last asked Sep 24 · Scenario · Mid-level
Other ways it was asked
- “How would you keep track of memory growth and prevent leaks in this asynchronous environment?”
How would you test for memory leaks and ensure your retry logic doesn't introduce subtle retention issues?
Asked once · last asked Sep 24 · Scenario · Senior
What .NET tools or techniques can help optimize memory usage, and how do they work?
Asked once · last asked Oct 2 · Concept · Senior
How do you debug and fix a memory leak in a long-running single-page application caused by event listeners or timers, and what steps and tooling do you use?
Asked once · last asked Oct 3 · Scenario · Senior
How would you quickly check whether a server is experiencing a CPU, memory, or disk problem?
Asked once · last asked Oct 7 · Scenario · Mid-level
How would you find and fix a memory leak in C using malloc and free?
Asked once · last asked Oct 14 · Scenario · Junior
In Java, how does ThreadLocal work, and what's a common production issue it can cause in application servers or thread pools?
Asked once · last asked Oct 17 · Concept · Senior
If an app repeatedly crashes in production because of excessive memory usage or cached data, what steps would you take to reduce its crash rate?
Asked once · last asked Oct 19 · Scenario · Senior
How would you monitor CPU and memory usage on an ESP32, and what trade-offs would you consider?
Asked once · last asked Oct 21 · Scenario · Senior
Other ways it was asked
- “How did you monitor CPU and memory usage on the ESP32, and what trade-offs did you consider?”
What is your approach to memory leaks and ANRs in production, and which tools do you rely on?
Asked once · last asked Oct 23 · Scenario · Senior
How would you diagnose and resolve a Node.js memory issue?
Asked once · last asked Jun 12 · Scenario · Mid-level
What improvements or optimizations are commonly needed in C-based mini shells and client-server systems?
Asked once · last asked Oct 21 · Concept · Mid-level
Large data processing and out-of-memory interview questions
Consider how streaming, batching, backpressure, distributed processing, container limits, and GPU capacity affect work with large data and limited memory. 31 questions.
How does a Kubernetes pod behave when it has a 2 GB memory limit?
Asked once · last asked Apr 14 · Scenario · Mid-level
If multiple Kubernetes pods approach 1 GB of memory usage, what happens under memory pressure, and can one pod's limit or usage cause other pods to be killed?
Asked once · last asked Apr 14 · Scenario · Senior
In Node.js, how would you design a high-throughput HTTP endpoint to apply back pressure when downstream work is slower? What Node.js primitives would you use to avoid unbounded memory growth?
Asked once · last asked Apr 17 · Design · Senior
What problems would you anticipate when processing a 4- to 5-GB nested JSON file?
Asked once · last asked Apr 17 · Scenario · Mid-level
What determines how much data Redis can store?
Asked once · last asked May 25 · Concept · Mid-level
You have a very large file that cannot fit in memory, with one URL per line and possible duplicates. How would you process it to produce a file containing each unique URL and its number of appearances?
Asked once · last asked May 25 · Write code · Senior
In distributed data processing, does repartitioning change data stored on disk or data held in memory?
Asked once · last asked Jun 1 · Concept · Senior
How does repartitioning redistribute data, how can you distinguish data skew from simply having a large volume of data, and why might a shuffle stage spill to disk?
Asked once · last asked Jun 1 · Concept · Senior
How would you read a large CSV with pandas while minimizing memory usage and validating column types during loading?
Asked once · last asked Jun 3 · Tooling · Mid-level
In pandas, how would you design a memory-efficient pipeline to read and aggregate a 50 GB CSV, grouping by customer_id and computing sums without loading the whole file at once?
Asked once · last asked Jun 25 · Scenario · Senior
How would you calculate the mean of a column in a dataset that is too large to fit in memory?
Asked once · last asked Jul 21 · Scenario · Mid-level
You need to serve one very large file or process a huge CSV upload. How do you do this in Node without killing the process?
Asked once · last asked Jul 23 · Scenario · Mid-level
Show 19 more
If a container works locally but fails in production with out-of-memory errors, how would you debug it?
Asked once · last asked Aug 4 · Scenario · Senior
Why would you use a generator instead of a list comprehension to process 10 million items?
Asked once · last asked Aug 13 · Concept · Mid-level
In what cases does an out-of-memory error happen on the driver node versus an executor node?
Asked once · last asked Aug 14 · Concept · Senior
Can excessive shuffling lead to executor out-of-memory errors?
Asked once · last asked Aug 14 · Concept · Mid-level
An engineering team is fine-tuning a model using quantized LoRA (QLoRA) on limited GPU infrastructure and repeatedly encounters out-of-memory errors. How would you mitigate these errors?
Asked once · last asked Aug 20 · Scenario · Senior
Other ways it was asked
- “The engineering team is doing a quantized LoRA for a model on limited GPU infrastructure and keeps getting out-of-memory errors. How could we help them mitigate these errors?”
How would you read a 5–10 GB log file without loading the entire file into memory?
Asked once · last asked Aug 22 · Scenario · Mid-level
When you're reading a large CSV in pandas for an ETL step, what options do you use to control memory and data types and why?
Asked once · last asked Aug 23 · Tooling · Mid-level
How do you implement chunked processing to aggregate results without holding the full dataset in memory?
Asked once · last asked Aug 23 · Scenario · Mid-level
If your application runs in AWS with only 1 GB of memory but must read more than 100 GB from DynamoDB and write it to a file, what is your approach?
Asked once · last asked Sep 2 · Scenario · Senior
Which PL/SQL collection types are suitable for bulk processing, how do you manage memory, and how do you choose batch size?
Asked once · last asked Sep 4 · Concept · Senior
When pulling a database containing 50,000,000 rows from SQL Server into Python, how do you prevent memory error exceptions? Compare memory-safe techniques.
Asked once · last asked Sep 5 · Scenario · Senior
For a rolling-window rate limiter that stores exact request timestamps, how does a worst-case burst affect memory use and per-request cost, and does the operation remain O(1)?
Asked once · last asked Sep 6 · Scenario · Senior
When cleaning a 50 GB CSV with pandas where some numeric columns contain mixed types and bad tokens, how would you design a memory-safe pipeline to coerce types, track rejected rows, and write clean Parquet?
Asked once · last asked Sep 7 · Tooling · Senior
How would you process a very large binary tree that cannot fit entirely in memory?
Asked once · last asked Sep 10 · Scenario · Senior
How would you handle memory usage as you scale concurrent requests?
Asked once · last asked Sep 24 · Scenario · Mid-level
How do you determine whether a model can run on a 24 GB GPU or requires a 48 GB GPU?
Asked once · last asked Oct 7 · Concept · Senior
How would you investigate an out-of-memory error?
Asked once · last asked Oct 16 · Scenario · Senior
What happens when an application's cache runs out of memory?
Asked once · last asked Apr 15 · Scenario · Mid-level
Why is memory important when selecting the right model?
Asked once · last asked Aug 20 · Concept · Mid-level
Related interview questions
- Software Engineer interview questions
- System Administrator interview questions
- DevOps Engineer interview questions
- AI Engineer interview questions
- Data Engineer interview questions
- Data Structures and Algorithms interview questions
- OOP and Design Patterns interview questions
- System Design interview questions
- Microservices interview questions
- REST API interview questions
- Kafka and Message Queues interview questions
- Caching and Redis interview questions
- Computer Networks interview questions
- Git interview questions
How this list is made
Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.
Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.
The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every Operating Systems interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.
206 interviews, 166 candidates, Dec 2025 to Oct 2026. Updated every month with new interviews.
Or add the Chrome extension