Detached Threads (pthreads) | C Programming Tutorial

preview_player
Показать описание

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

You're a great teacher. When I need to learn about subjects I don't know, I find myself here. Greets from Ecole 42, thank you!

erendemirer
Автор

Well these videos are gold! I am just impressed why it has so few likes! it deserve way more!!

giulianobortolassi
Автор

Another nice video! Interesting that the log is not a log of the event of a new incident but just the status at a specific timestamp. So I can enter more than one incident in between the logger executions. I was curious if things like garbage collection could work using detached threads too?

vicsteiner
Автор

Hi, nice video but I would have a question to the detached thread. My understanding is that when the thread is detached from the main thread it runs independently. But what happens when main ends. When will the thread end as it is running in an endless loop? Will it get notified by the main thread. In addition the thread is using the file pointer to write the log file. As this file is close by the main thread before it ends I would assume that the thread would crash when it tries to write the next timestamp. Or did I miss something? Thanks a lot.

bernhardkneer
Автор

Hi Teacher, what is the meaning of "struct tm *tm" ? how can a struct have two variable names. 9:00 . I am confused, thank you

mastermax
Автор

Hi! Thank you for share your knowledge !
So, do you put the char timestamp[256] declaration inside the while loop redeclaring the array again and again... This can cause a bug by running for a long time ?

trocandobytes
Автор

How is that you put "&logger" inside pthread_create function for detached threads, but on your previous videos there is no ampersand in front of callback functions inside pthread_create (i.e. function "deposit" inside "Race Conditions Explained With An Example" video, and function "computation" inside "Introduction To Threads (pthreads)" video ??

dzeno