xinglin / cpp

some cpp programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  • pipeline.cpp

A sample program, to demonstrate how to build a three-stage data processing pipeline, using mutex and condition variables. Each stage could have multiple threads for concurrent processing.

Data (chunks) flows from file_read_thread to compression threads to encryption threads.

  • sequential-children-execution.cpp

Create a pool of 10 threads, with each thread executing sequentially based on its order(id).

About

some cpp programs


Languages

Language:C++ 96.6%Language:Makefile 3.4%