Комментарии:
when checking for errors, do we always have to return different numbers or can we return the same number for our pthread_create and pthread_join ?
Ответитьyour cpu has 8 cores. what happens if you create 12 threads. do all the 12 threads starts execute at same time?
ОтветитьHi, routine method must take void* parameter and must return NULL in my case, to build my code. Have a nice day :)
ОтветитьThank you for your quality videos, i love this playlist
Ответитьthank you
ОтветитьI've loved your tutorials series on threads, and I'm currently using them to get caught up before re-attempting an Operating Systems course at University. However, I can't find an explanation for what "th + i" means in the context of what 'th' stands for. Is that just a way of giving providing a thread with a number to pthread_create? (Noticing it takes place of the normal &p#)
ОтветитьYou're a legend for those who are taking the Operating System Course.
ОтветитьThanks :,)
Ответитьyou are a little bit too pedantic man, its not really that difficult
ОтветитьMy system is octal core. i was able to create 11 threads. Am i wrong or is there any particular calculation?
ОтветитьWhat happens if more than 8 threads are created? More than the number of CPU cores?
Ответитьgreatly appreciate your effort, i am currently studying threads and you are making my life easier !
ОтветитьThe simplest, fastest, yet slow enough for me to comprehend explanation. I did not face this issue myself but it helped me understand things more clearly. I am fairly new to threads. Thank you sir!
ОтветитьBest lessons. Respect from India :)
ОтветитьYou are helping me in understanding and completing my systems assignments at IIT Bombay. Thank you sir.
ОтветитьReally nice explanation! Makes lots of sense :)
ОтветитьWonderful! Thank you!
ОтветитьHi! Thanks for your tutorial. I want to remind you about you put mutex into for loop. It will let CPU slower. Although this chapter won't discuss about Time,I think you can remind listener about this point!
ОтветитьThank youuuuu. I love you dude. So frekin helpful.
ОтветитьHi, I had a question on malloc and free implementation in your code. As an exercise, I am trying to allocate and deallocate the memory in main memory. In your previous video (return values from a thread), you are calling malloc for each thread creation and in this video, we are trying to free the memory after joining all the threads. When I try to combine these, I see the program perfectly works. But shouldn't the number of malloc creations be equal to the number of free operations? Shouldn't we be freeing the memory inside the for loop of join threads? Obviously, I tried this and the program still works fine. What's the puzzle piece is when I print out the memory allocated for all threads, they are all the same. How is that possible?
ОтветитьThank you sir , you saved my time
ОтветитьThanks a lot for your video its really helpfull.
Do you know how to use the debugger in VS code for debugging multiple thread?
understood
ОтветитьThank for your clear explanation? Have you ever think to make your own ONLINE SCHOOL, you would be so successfull !
Ответитьlove you dude and your explaination
ОтветитьFirst half really had me on the edge of my seat haha, excellent video!
ОтветитьSir, you are great. You explain everything very well and make it so simple to understand. Keep making videos.
ОтветитьGreat example and lesson !!!! Thank you so much !!!
Ответитьthank you so much <3
ОтветитьThank you so much for these videos.
ОтветитьIs there a way to create a thread inside a thread? and if yes in this example could we create two additional threads that one does pthread_create and the other one does pthread_join?
ОтветитьWhy do we have to join the threads?
ОтветитьYou really helped me! Thank you
ОтветитьThank you so much, my OS class confused me so much last semester and these videos help me so much
ОтветитьYour video is the best. thx
ОтветитьBest!
ОтветитьWhere were you when I took System programming? Thanks btw
ОтветитьIs there any equivalent to waitpid with -1 to wait for 'any' completed thread? Like with processes I might use:
while (number_of_processes--)
pid = waitpid(-1, &stat_loc, 0);
The good thing bout this channel is, he always wants to convey the right knowledge without caring about views and likes. No fancy thumbnails...only coding... really appreciate your efforts...
ОтветитьYou are so helpful! Thank you so much for your videos. You made my project implementation easier!
ОтветитьExcellent content. I subscribed. Some of the most helpful videos I have found on the subject.
ОтветитьThank you for the video..
ОтветитьCan somebody please give this guy an Oscar?? This was wonderful. Thank you 🙌🏾🌸
ОтветитьGosh, I wish you could be my professor instead!
ОтветитьWish I had you as my Operating Systems professor. Excellent, excellent videos. I hope you succeed in your future educational endeavors!
ОтветитьMost underrated channel ever.
ОтветитьThanks for video. Can come a 'semaphore with multithread' video today or tomorrow. I have an project about it until tomorrow 5pm :D
Ответить