Cpp-and-Threads
cpp thread 

所属分类:Python编程
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2018-01-24 10:39:06
上 传 者sh-1993
说明:  给出了C++多线程编程工作的一些例子,包括一些技巧,并提出了实现多线程编程的好方法...
(Some examples how C++ multithreading programming works, includes tips and adviced with good approches for achieving good and efficient results.)

文件列表:
atomic.cpp (1303, 2018-01-24)
call_once.cpp (624, 2018-01-24)
callable_object.cpp (1489, 2018-01-24)
condition_variable.cpp (1127, 2018-01-24)
condition_variable_and_threads.cpp (3626, 2018-01-24)
data_race_and_mutex.cpp (2546, 2018-01-24)
deadlock.cpp (2868, 2018-01-24)
final task/ (0, 2018-01-24)
final task/Prime_Interval.cpp (8180, 2018-01-24)
final task/Prime_Interval.h (2667, 2018-01-24)
final task/prime_numbers_and_threads.cpp (681, 2018-01-24)
future_promise_async.cpp (2108, 2018-01-24)
hello_threads.cpp (1421, 2018-01-24)
locks_and_mutex.cpp (5004, 2018-01-24)
packaged_task.cpp (1945, 2018-01-24)
recursive_mutex.cpp (1316, 2018-01-24)
thread_local.cpp (918, 2018-01-24)
thread_management.cpp (3188, 2018-01-24)
threads_exception_management.cpp (2946, 2018-01-24)
time_constrain.cpp (1207, 2018-01-24)
unique_lock_lazy_initialization.cpp (1670, 2018-01-24)

# Cpp-and-Threads Some examples how C++ multithreading programming works, includes tips and adviced with good approches for achieving good and efficient results. As a small task was chosen such problem: 1. Create an application which calculates prime numbers for intervals: - Load intervals from specified xml-based file; - For each interval start standalone thread for calculating prime numbers; - Each calculation thread must store every calculated prime number to shared container list; - Save unique prime numbers to xml-based file (primes tag). Example of source xml file: ![example](https://user-images.githubusercontent.com/28359156/35287817-eff8d79e-006b-11e8-8838-4e80f16622f4.PNG) USEFUl LINKS: * A short playlist that covers basics of C++11 multithreading https://www.youtube.com/watch?v=LL8wkskDlbs * Also a small article about C++11 multithreading in two parts https://habrahabr.ru/post/182610/ https://habrahabr.ru/post/182626/ * Answers on common question on the multithreading topic http://www.acodersjourney.com/2017/01/c11-multithreading-tutorial-via-faq-thread-management-basics/

近期下载者

相关文件


收藏者