How to create and join threads in C (pthreads).

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

How to create and join threads in C (pthreads). // Threads are super useful and super dangerous. Loved by new programmers, feared (or at least respected) by experienced ones, and something that every programmer should understand. This video will help get you started using pthreads—the most commonly-used almost-universal-standard for writing computer programs that can work on multiple things concurrently.

My other threading videos:



***

Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.

About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.

More about me and what I do:

To Support the Channel:
+ like, subscribe, spread the word

Want me to review your code?

You can also find more info about code reviews here.
Рекомендации по теме
Комментарии
Автор

pthread_join(&newthread, NULL) gives me error so i used pthread_join(newthread, NULL) and it works. Can anyone explain why it works here but does not work in my case. Thankyou.

biswas
Автор

I'm impressed with how simply you explained a topic that can be way complicated to explain. You are an excellent teacher! Thanks!

martinpichardo
Автор

You are a very good teacher. Thank you for this! looking forward to more videos about pthreads :)

intelignet
Автор

Amazing! Thanks bro. I spent 3 hours with my professor trying to explain that and he faild. You did it in 6 minutes! keep it up. Thanks

youssefgerges
Автор

In 6 min I got what I I spent a full lab time to try to execute . Thank u.

joejamaly
Автор

Thanks a lot! Refreshing C, learn Zig and Rust and learning every single day a lot and increase the understanding of all. You are a great teacher!

alexanderzikal
Автор

I searched about 12 videos looking for a cohesive explanation on pthreads before I found this one. Now I'm watching the whole series. This is the first video I've found that logically and procedurally explains pthreads and their uses. Great job. You earned a subscriber!

carolinaSolid
Автор

Hey
I’m at last year of my computer science bachelor .
I just want to say Thank youuuu for your videos they help me a lot ❤️

nilou-sl
Автор

If this channel doesnt get 1M subs till summer, I will be sad. Great videos Jacob!

danielskala
Автор

Love how people like you make programming easier to learn for the rest of us. Thanks!

denebvegaaltair
Автор

JacobSorber is a great C language teacher. I’m learning lots of useful programming techniques. Thanks

frankgomez
Автор

This was very useful and I appreciate you making this video. You seem like a wonderful teacher and am so grateful you're sharing your knowledge with the world.

I can't believe this video has thumbs down! Wishing you a great 2021 ahead!

rykuzrl
Автор

Ok, I was looking for the definition for threads and processes. I looked soo hard but still couldn't understand.
I watched 3 mins of your video and all makes sense now!
Thanks:)

applenews
Автор

Great video! The second example is more intuitive.

luizfernandorabelo
Автор

I remember having to write my own threading library in C with pthreads (and any other threading APIs) being totally off limits. The “metal” and I got very acquainted to say the least... It was a very valuable learning experience. I’m so thankful for the pthreads library now

TMerica
Автор

Thank you. This made my understanding about threads so much clear.

thiwankapathirana
Автор

I don't think you know how much I love you

juanperret
Автор

Love your channel for quick interview prep.

santoshsco
Автор

Thank you for making this video. I will continue my journey by making a new search algorithm using this knowledge.

TsubasaKato
Автор

You really know the subject and concepts and I sincerely follow your tips and guidance. Many thanks for these useful videos.

saveplanet