01. Asynchronous Pipelines (Promises & Futures)
Tackled decoupling data production loops from data display operations, engineering asynchronous communication avenues across thread barriers without explicit locking stalls.
Architected a nested thread hierarchy where primary active workers spawn specialized, localized logging sub-threads. Leveraged std::promise and std::future data configurations to transport execution metrics. Moving (std::move) tracking tokens directly into sub-contexts allows long-running asynchronous threads to report final numeric tallies securely without blocking execution pathways.
Managed safe thread cleanups for detached asynchronous environments by enforcing a structural, mutex-locked tracking system. The main thread delegates work and sleeps via a conditional variable block (cv.wait), instantly waking to free array heap structures only when the active thread tally reaches zero.