Тёмный
No video :(

The fork() function in C 

CodeVault
Подписаться 61 тыс.
Просмотров 365 тыс.
50% 1

Check out our Discord server: / discord

Опубликовано:

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 373   
@peponvatrahedes7392
@peponvatrahedes7392 3 года назад
This series is a treasure trove for CS students who are studying OS courses. Thank you and please keep making this type of content!
@intuitive_acumen
@intuitive_acumen 3 года назад
@@exelo000 Exam tomorrow, let's go!
@play_sports_and_read_books
@play_sports_and_read_books 2 года назад
Real Time Systems too
@schleem2061
@schleem2061 2 года назад
I will be naming my first born child after this man in tribute
@gouravbhardwaj9156
@gouravbhardwaj9156 Год назад
me RN
@w0nnafight
@w0nnafight Год назад
you dilated while watching this
@ericktapia5289
@ericktapia5289 Год назад
Students like me pay thousands of dollars to professors who do not even answer emails to help with the homework. Yet, you explained the topic in 10 mins? You are a Hero!!!
@janexdiaz
@janexdiaz 2 года назад
This is sooo much better than all those boring powerpoint presentations with people talking like they are zombies. Thank you for making the best content about these topics. Much love!
@dteja92
@dteja92 Год назад
pun intended about zombies? :D
@fernandoaguero2814
@fernandoaguero2814 4 года назад
you are saving my parallel and concurrent programming course with these videos. THANKS!
@rakanoven7491
@rakanoven7491 3 года назад
absolute lifesaver. Explained the fork concept so much better than my lecturers hands down. Thank you so much!
@sublajz8432
@sublajz8432 3 года назад
You may not have that many views, but that does not stop you from creaing good quality educational content. Earned a subscriber.
@justanotheryoutuber739
@justanotheryoutuber739 3 года назад
I am so glad to have found this 4 hours before my exam, seems kinda doable now ^^
@amerbiro5411
@amerbiro5411 3 года назад
Same from me. I get a lot of help to understand different topics in my course. You are great man. I would love to support the channel
@simonepog7710
@simonepog7710 2 года назад
I passed my OS exam thanks to you man, you’re a legend! A massive hug from Italy, keep up the great work…ciao! 💪🏻♥️
@jacopoprescianotto284
@jacopoprescianotto284 2 года назад
Thanks to your videos I just passed with the maximum mark a university exam about Unix processes which I failed last summer, I wanted to compliment your teaching way and thank you so much❤️
@marianaaa24
@marianaaa24 Год назад
This is amazing. Your style of teaching is so fun and engaging! Thank you!!!!
@w0nnafight
@w0nnafight Год назад
you dilated while watching the video
@animeshsarkar295
@animeshsarkar295 Год назад
Worth learning keep making videos Sir. As I had started watching your videos when I was very new to computer science I knew nothing and after completing the C language by seeing your tutorials now I feel confident which definitely going to help me in my career. Thank You Very Much Sir.
@Wolfwuf
@Wolfwuf 7 месяцев назад
I was reading the free ebook on operating systems: three easy pieces. When they introduced fork and exec i was so confused but this video clarifies everything super well. Thanks!
@avienbdr
@avienbdr 4 месяца назад
thank you so much you helped me a lot in my economics project!
@pablomolero3856
@pablomolero3856 3 месяца назад
I am late to the party, but you sir are a lifesaver. Thank you so much for creating simple, easy-to-follow tutorials for these complex topics. For some reason, UNIX documentation loves to be cryptic and hard to follow. It feels to me that documentation is there just to be a sort of gatekeeper into these concepts. Your tutorials are the way things have to be taught and explained, at least for a first contact with the topic.
@leonardvanvlierberghe8835
@leonardvanvlierberghe8835 3 года назад
I'm a student and before i watched this video, i watched a lecture of about an hour and didn't understand a thing about forks. 2 mins into this video i already understood more. You're a hero!
@MrVirtuezzz
@MrVirtuezzz 2 года назад
You are a very good teacher with useful content that is hard to find. Thank you.
@Clarin3t1
@Clarin3t1 2 года назад
You SAVED MY LIFE!!! They went over this in class and it was poorly explained and SO CONFUSING. THANK YOU!!
@hectordoyle4718
@hectordoyle4718 4 года назад
thanks for the video! I discovered this channel today, and you've already given me exactly what I needed 😌
@Hevletica
@Hevletica 2 года назад
This guy's pedagogical style is the best out of all tutors of this channel.
@PedroAugustoPHS
@PedroAugustoPHS 4 года назад
Thanks for the video, Is really hard to finds good videos like this.
@axmedkayse01
@axmedkayse01 4 месяца назад
This is amazing video for fork() explanation, I am watching 4/2024 and it is far best video explaining about fork(). Thank you so much.
@jasonhuang2270
@jasonhuang2270 Год назад
Studying for Final Exam for CS class and wish I had found this sooner!
@easyrecipes0
@easyrecipes0 3 года назад
Thank You Sir- you have taught me 1000... time better than my Professor.
@peterbarabas9358
@peterbarabas9358 4 месяца назад
One of the best tutorials on fork(). Thanks!
@fahadahammedbd
@fahadahammedbd 2 года назад
In youtube nothing available clierly on this topic, thank you so much for making this type of video.
@cassiusrocha8181
@cassiusrocha8181 9 месяцев назад
Thanks so much for your strightforward explanations! I just found your videos and it's helping me a lot. Cheers from Brazil!
@sirbenson6863
@sirbenson6863 Год назад
Got damn i appriciate a good video about the stuff i study about in university. Huge thanks!
@tienatnguyen5882
@tienatnguyen5882 3 года назад
11 mins for explaining a 1-hour long boring presentation by my teacher. Subscribed!
@mariantoniettamaselli5116
@mariantoniettamaselli5116 2 года назад
THANK YOU SO MUCH! going to binge watch all your videos hoping to pass my exam
@akosdanielbollok4956
@akosdanielbollok4956 Год назад
Next week I am having a test on this topic. I didn't understand anything until I've watched your video, it's amazing, thank you!
@sathvikmalgikar2842
@sathvikmalgikar2842 2 года назад
This series is a gold mine . thanks for this.
@steviet5246
@steviet5246 3 года назад
Computer Scientist in Bachelor here, thanks for that explanation it did help A LOT.
@data-dynamo-guy
@data-dynamo-guy Год назад
This video is gold for me, thank you a lot, I got stuck this this fork function for 2 weeks.
@safayathakim5226
@safayathakim5226 Год назад
Thank you. Overall explanation clarifies some of the confusion.
@yeetyeet7070
@yeetyeet7070 2 года назад
new favorite coding channel
@MrSkyydude
@MrSkyydude 4 месяца назад
Thank you, sir. I needed the explanation, you rock.
@HieuLe-ri2jh
@HieuLe-ri2jh 4 месяца назад
So easy to understand with the hand language! thank you
@priyanujbora9089
@priyanujbora9089 Год назад
I was struggling with fork(). You made it simple. Thanks a lot!!!!
@fonatic5893
@fonatic5893 3 года назад
It's beautiful idea to create a Discord server! Thanks for the good explanation
@CodeVault
@CodeVault 3 года назад
You should join it if you haven't already! We're always trying to help people out and looking for others that can help since it's getting a bit more activity than usual. Here's the link: discord.code-vault.net
@sony1979iq
@sony1979iq 3 года назад
nice explanation, i had ever understand the forking thing from my teacher at university. Now i got it..thx
@beiqhy
@beiqhy Год назад
thank you for your work, high quality content :) saw u didn't post for a while, hope all is good !
@muneebaslam4569
@muneebaslam4569 3 года назад
Thanks man. I was watching this from incognito tab and then did a login just to subscribe your channel.
@Thomas-d8Thomas___g3q9
@Thomas-d8Thomas___g3q9 Месяц назад
Ironically, brace yourselves - the oh-so-thrilling confirmation of your Sales Incentive payment has apparently been "processed."
@waelbadria9385
@waelbadria9385 3 года назад
Great man. I love watching your videos. You explain things better than my instructors LOL.
@nobi_nose9469
@nobi_nose9469 3 года назад
I cannot thank you enough for making these!
@stevendam8031
@stevendam8031 3 года назад
bruh you saved me... i study electrical and computer engineering xD
@XAyaDubX
@XAyaDubX Год назад
You are an amazing teacher. Thank you so much.
@FinanceMode14
@FinanceMode14 Год назад
Thank you so much man you are very underrated.
@oviya.n1317
@oviya.n1317 3 года назад
2 days from now i am to crack the round 1 in amazon . Preparing myself for OS .being a ece student this helped me so much ❤️
@madhusrinomula2495
@madhusrinomula2495 Год назад
Well explained,understood in single go
@madhusrinomula2495
@madhusrinomula2495 Год назад
TQ so much
@10nandik
@10nandik 3 года назад
Bravo, explici foarte bine! Great that I've found your channel.
@yangyue2791
@yangyue2791 6 месяцев назад
Amazing videos! My university should have invited you to teach OS courses!!!😂
@sebastianmatiz3383
@sebastianmatiz3383 3 года назад
This channel is amazing. Thank you!
@kitchengun4273
@kitchengun4273 13 дней назад
you are an absolute chad my man
@agustd9590
@agustd9590 3 года назад
Oh My GAWWWDDDD you're the best teacher on youtube to be honest
@Hanan-qr1cl
@Hanan-qr1cl 2 года назад
A big thanks from the virtual university.. This video helped me a lot in my assignment 💪🏻
@CreepyD246
@CreepyD246 Год назад
Helped so much, thank you
@hristijanslavkoski9438
@hristijanslavkoski9438 2 года назад
I wish you were my Professor. I would have learned way more
@girish6064
@girish6064 Год назад
Thanks for this valuable information about fork() function call. Best Regards, Girish S.D
@user-tf8qe9fl9x
@user-tf8qe9fl9x 3 года назад
Good explanation Better than dry instructions
@stormz4040
@stormz4040 3 года назад
I just subscribed to your channel. Thank you for your videos.
@nebarolandngwa9014
@nebarolandngwa9014 3 года назад
Thank you so much for this video. I really got a clearer understanding of how forks work but then I have a question. What is the essence of duplicating processes with the fork and displaying the same output multiple times
@CodeVault
@CodeVault 3 года назад
The purpose is usually to have many programs run in parallel but also not share any sort of memory. Using message passing to communicate
@shanthgaitonde
@shanthgaitonde 2 года назад
You can think of processes like apps on your phone. When you open both Instagram and Facebook, in OS, they are two different processes via fork with different memory address space.
@alintdg9896
@alintdg9896 3 года назад
This is so good explained i cant even put into words! wish you were my uni teacher!
@AhmedElamoryDev
@AhmedElamoryDev 3 года назад
Thanks a lot for the video.. !!
@lucakim27
@lucakim27 2 года назад
this helped my OS assignment so gooooooodddd
@mahmutkoroglu7072
@mahmutkoroglu7072 3 года назад
Superb quality, love it, thanks!
@drunkmadala
@drunkmadala 2 года назад
Thanks for clarifying this daunting topic, but my question is at what stage or under what conditions would a programmer use fork() function? Or should I say, what is the practical function of fork()?
@CodeVault
@CodeVault 2 года назад
Usually if you want to launch another program from your own program you would use fork() and then a call to execlp() (or similar function). In some niche cases you could use it to distribute work for an algorithm that is easy to parallelize (although usually threads are what are used in that case).
@skmplanet9591
@skmplanet9591 4 месяца назад
Great!! Your explanation is very clear!
@adamthaok5025
@adamthaok5025 2 месяца назад
saved me from 2 hours of useless lecture
@RamytRamyt
@RamytRamyt 3 года назад
Thank you! This is so helpful!
@kimchijam
@kimchijam 8 месяцев назад
my saving grace before my final
@alyssashen2023
@alyssashen2023 2 года назад
Thank you!! Your video is much better than my professor's.
@mheshaipahbhut
@mheshaipahbhut 2 года назад
Imagine looking at your haircut in the reflection.
@hamids4550
@hamids4550 3 года назад
I subbed cuz you explained it better than my prof. excellent job
@naux3169
@naux3169 3 года назад
This is really helpful! Appreciate it!
@monalineosman8645
@monalineosman8645 3 года назад
Great explanation from a great expert, thank you so much
@emilyflores1142
@emilyflores1142 3 года назад
This video was so helpful, thank you!!
@abcdx4997
@abcdx4997 2 года назад
You know too much... good work, keep on it
@eliadaballazhi2982
@eliadaballazhi2982 Год назад
I should have watched this during the semester not just some hours before the exam....i might have actually understood something. The regret....
@DavidCourtney
@DavidCourtney 3 года назад
I wrote a small text based dungeon crawler and I really want to make it so that multiple people can play it. If player A walks into a room that player B is in, player A would get a message like "You are standing in a tiny alcove. Player B is here." And player B would see a message like "Player A has just walked in." Would fork() be the way to go to create a multiplayer experience?
@CodeVault
@CodeVault 3 года назад
Hmm, I think I would just use threads for this. Creating multiple processes for a simple game sounds a bit much. There's a course on threads here: code-vault.net/course/6q6s9eerd0:1609007479575
@DavidCourtney
@DavidCourtney 3 года назад
@@CodeVault Thanks, I will look at these videos. I have a very basic game working, but I've never tried to make a program that multiple people can run at the same time, so I'm not sure how that works. My thinking is that I'll create a separate account on my Raspberry Pi that I can log into via ssh. I'll have it set up so that when I log into that account, it automatically runs the game. When I first enter the game, I'll have to type in a unique player name and then I'll be placed into the game. Then I can log into that account again via a separate ssh session, type in another unique player name, and the two players will exist in the game at the same time. (And I can log in as many times as I want ... or have friends log in.) But I have to figure out how to make it so that each player can talk to the other players, give items back and forth, explore the dungeon together, kill monsters cooperatively, and so on. repl.it/@blixel/textAdventure
@CodeVault
@CodeVault 3 года назад
Ohh, that's a bit more complex what you want to do. I think the best way is to use sockets here. You'll need a server that receives updates from clients. So two separate programs. I don't have tutorials on sockets yet. Here's the docs for them: linux.die.net/man/7/socket
@DavidCourtney
@DavidCourtney 3 года назад
@@CodeVault Thanks again for the reply. I've gone down the path of sockets before as well. Using a variety of RU-vid videos as my knowledge base, I've written a basic client/server chat system. I've fiddled around with it and added some of my own ideas like being able to create a username when first getting on, and having the server keep track of usernames so that clients can type "list" to see who is logged in. It was fun and educational, but it seems to me that's not quite how these MUDs work. With MUDs I've played with, you use your regular telnet/ssh client to go from your end to the server, and the MUD daemon on the server does the rest. So I felt like I was going down the wrong path with my client/server socket stuff. When I saw this video on fork(), I thought maybe the game would fork() a new process for each connection, and then players could talk to each other and adventure together. But I don't know. I can't figure out how this multiuser thing works.
@Salimmelzi
@Salimmelzi 5 месяцев назад
Excellent explanation sir !
@tantelou2996
@tantelou2996 2 года назад
Thank you for being an excellent teacher!
@nosakhareaghedo5692
@nosakhareaghedo5692 2 года назад
Thanks alot man. The explanation was perfect
@azharsavannah
@azharsavannah 3 года назад
my god, you explain it perfectly, thanks for the videos!!
@IBITZEE
@IBITZEE 3 года назад
nice info,,, very detailed and informational.... thanks... please do more....
@ValorantInSpecter
@ValorantInSpecter 11 месяцев назад
very good understandable explanation
@Oumaima-Ouni
@Oumaima-Ouni 5 месяцев назад
keep up the great work ! thank you so much life_saver
@joaofaria4203
@joaofaria4203 Год назад
i LOVE YOU MAN
@syedfahmi1436
@syedfahmi1436 4 месяца назад
You are a life savior :D
@tinktwiceman
@tinktwiceman 3 года назад
Great video. When your mouse went was above the fork() function, it gave you a description of the function. How do you do that in Visual Studio Code? Thank you!
@CodeVault
@CodeVault 3 года назад
There's this video to set up C/C++ programming for vscode: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-N5GhV8K8DIc.html If you're on Linux, just follow the mingw installation guide but point it to the gcc binaries instead. Should work exactly the same.
@lakshanjayaweera6232
@lakshanjayaweera6232 3 года назад
Great program. Keep it up !
@nurudeenahmed7656
@nurudeenahmed7656 11 месяцев назад
Great series. what type of keyboard do you use please?
@CodeVault
@CodeVault 10 месяцев назад
I think I use the DasKeyboard Model S with brown switches on this video. Really great keyboard, I recommend (just not for gaming)
@camilabalsemao1184
@camilabalsemao1184 2 года назад
Great video! It helped me a lot.
@brahimbenhammou4867
@brahimbenhammou4867 3 года назад
Very good explanation, keep up tge good work
@engso.arthur
@engso.arthur 2 года назад
This is gold, thank you.
@stinkyseastar3560
@stinkyseastar3560 Месяц назад
awesome, explained really well!
@yusupovjasur
@yusupovjasur 3 года назад
Great explanation! I have one question though: when you run a program, a child process is printed first, and then the parent (main) process (3:05). But in my case, the parent process is run first, then the child process. It seems to depend on compilers. Or what?
@CodeVault
@CodeVault 3 года назад
It depends on many things... Either way, order of execution for processes and threads is undetermined. That's why multi-process and multi-thread programming is difficult.
@yusupovjasur
@yusupovjasur 3 года назад
@@CodeVault Understandable, thank you!
@ouaammoumouad709
@ouaammoumouad709 Год назад
thank you , you really did great work
@bullet4255
@bullet4255 3 года назад
Which keyboard do you use? The sound is wonderful.
@CodeVault
@CodeVault 3 года назад
I'm using the Corsair K63 with red switches in this video
Далее
Calling fork multiple times
13:58
Просмотров 108 тыс.
Reforged | Update 0.30.0 Trailer | Standoff 2
02:05
Просмотров 789 тыс.
مسبح السرير #قصير
00:19
Просмотров 2,5 млн
SIGMA ENVY IS UNTOUCHABLE 🔥 #insideout2
00:10
Просмотров 4,1 млн
Hack your brain with Obsidian.md
11:53
Просмотров 1,9 млн
The Most Legendary Programmers Of All Time
11:49
Просмотров 552 тыс.
10 Math Concepts for Programmers
9:32
Просмотров 1,8 млн
Executing commands in C
9:03
Просмотров 50 тыс.
But, what is Virtual Memory?
20:11
Просмотров 263 тыс.