文件名称:C++ Concurrency in Action
文件大小:4.04MB
文件格式:PDF
更新时间:2022-04-25 16:05:22
C++ Co
C++ Concurrency in Action, I encountered the concept of multithreaded code while working at my first job after I left college. We were writing a data processing application that had to populate a data- base with incoming data records. There was a lot of data, but each record was inde- pendent and required a reasonable amount of processing before it could be inserted into the database. To take full advantage of the power of our 10-CPU UltraSPARC, we ran the code in multiple threads, each thread processing its own set of incoming records. We wrote the code in C++, using POSIX threads, and made a fair number of mistakes—multithreading was new to all of us—but we got there in the end. It was also while working on this project that I first became aware of the C++ Standards Commit- tee and the freshly published C++ Standard.