Practical Parallelism in C++ : Basic Pthreads

preview_player
Показать описание
In this video we look at using Pthreads to do basic multi-threading!

Рекомендации по теме
Комментарии
Автор

Hey man, I was wondering if you haven't covered any of the following subjects and if you could make videos on them
Linked Lists, Quicksort, Pointers, Structured Data, Structured Data with Pointers, Enumerated Data Types Unions, C programming Language, Linked Lists, Characters, Strings, and the String Class.

Natu-dgeg
Автор

Run your code in cygwin3.3.6 and seems that mutex lock not working. change pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER,the output is neat now

豇豆-pk
Автор

I'm still confused, if you only have 1 thread working at one time, then why use threads at all, the Main thread can do all the work, without doing all of this. I'm looking at Parallelism by the looks of it.

snaecooceans
welcome to shbcf.ru