Resource Management
Everything on SkillVeris tagged Resource Management — collected across the glossary, study notes, blog, and cheat sheets.
21 resources across 1 library
Interview Questions(21)
What is Connection Pooling?
Connection pooling is a technique where a fixed set of pre-established database connections is reused across multiple requests instead of opening and closing a…
How Do You Tune a Database Connection Pool?
A connection pool is tuned by sizing it to the database's actual concurrency capacity rather than the application's thread count, then adjusting timeouts and e…
What is a Destructor in OOP?
A destructor is a special member function invoked deterministically when an object goes out of scope or is explicitly deleted, releasing resources such as memo…
What is a Finalizer in OOP?
A finalizer is a method a garbage-collected runtime may call on an object before reclaiming its memory, intended as a last-resort cleanup hook, but its executi…
What is RAII (Resource Acquisition Is Initialization)?
RAII is a C++ idiom where a resource (memory, a file handle, a lock) is acquired in an object’s constructor and automatically released in its destructor, so th…
What is a Smart Pointer?
A smart pointer is a class template that wraps a raw pointer and automatically manages the lifetime of the object it points to, deallocating it when it is no l…
RAII vs Garbage Collection
RAII (Resource Acquisition Is Initialization) ties a resource’s lifetime deterministically to an object’s scope so it is released the instant that object is de…
What is Lazy Initialization in OOP?
Lazy initialization is the technique of deferring the creation of an expensive object or the computation of a value until the exact moment it is first actually…
What is Object Pooling?
Object pooling is a technique where a fixed set of expensive-to-create objects is created once, kept in a reusable pool, and handed out and returned repeatedly…
The Object Pool Design Pattern Explained
The Object Pool pattern is a creational design pattern that manages a set of reusable objects through explicit acquire and release operations, coordinated by a…
What is a Copy Assignment Operator?
A copy assignment operator is the special member function (in C++, operator=(const T&)) that defines how an already-existing object’s state is overwritten with…
Move Semantics vs Copy Semantics
Copy semantics duplicates an object’s resources so the source and destination each own independent data, while move semantics transfers ownership of a source o…
What is a Move Constructor?
A move constructor is a special constructor (in C++, T(T&& other)) that builds a new object by transferring ownership of an existing rvalue object’s internal r…
What is the Rule of Three in C++?
The Rule of Three states that if a C++ class defines any one of a custom destructor, copy constructor, or copy assignment operator, it almost certainly needs t…
What is the Rule of Five in C++?
The Rule of Five extends the Rule of Three for modern C++ by stating that a resource-owning class should typically define all five special member functions tog…
What Is the Banker’s Algorithm?
The Banker’s Algorithm is a deadlock-avoidance algorithm that grants a resource request only if the resulting system state is provably safe, meaning there stil…
What Is the Hold and Wait Condition in Deadlock?
The hold and wait condition is one of the four necessary conditions for deadlock, and it means a process that already holds at least one resource is permitted…
What is a Thread Pool and Why Use One?
A thread pool is a fixed or bounded group of pre-created worker threads that pull tasks from a shared queue, so an application avoids the cost of spawning and…
How Does Horizontal Pod Autoscaling Work in Kubernetes?
The Horizontal Pod Autoscaler (HPA) in Kubernetes automatically increases or decreases the number of pod replicas in a deployment by periodically comparing obs…
What Is Horizontal Pod Autoscaling?
Horizontal Pod Autoscaling (HPA) is a Kubernetes controller that automatically increases or decreases the number of pod replicas in a deployment based on obser…
Horizontal Pod Autoscaler vs Vertical Pod Autoscaler
The Horizontal Pod Autoscaler (HPA) scales a workload out by changing the number of Pod replicas based on observed metrics, while the Vertical Pod Autoscaler (…