Тёмный

fork() and exec() System Calls 

Neso Academy
Подписаться 2,6 млн
Просмотров 401 тыс.
50% 1

Operating System: fork() and exec() System Calls
Topics discussed:
1) fork() System Call.
2) exec() System Call.
Follow Neso Academy on Instagram: @nesoacademy
Contribute: www.nesoacademy.org/donate
Memberships: bit.ly/2U7YSPI
Books: www.nesoacademy.org/recommende...
Website ► www.nesoacademy.org/
Forum ► forum.nesoacademy.org/
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#OperatingSystemByNeso #os #OperatingSystem #fork() #exec()

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

 

7 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 178   
@xrafter
@xrafter 3 года назад
exec : execute a binary file and push arguments in. The stack Fork : used to eat food
@nikolaoschairopoulos9005
@nikolaoschairopoulos9005 4 года назад
EXCELLENT EXPLANATION ( hello from national technical university of Athens - Greece)
@fahadxxdbl
@fahadxxdbl 2 года назад
hello from the University of Leeds - England (guys write your universities here too =D )
@richardsinclair7661
@richardsinclair7661 2 года назад
Hello from the University of Texas Rio Grande Valley - United States!
@jaimecoloma6034
@jaimecoloma6034 2 года назад
Hello from the Pontifical Catholic University of Chile!
@jameshunt1822
@jameshunt1822 2 года назад
Hello from Centre for Advanced Computing, Pune, Indua
@cse080chandrasekhar9
@cse080chandrasekhar9 Год назад
hlo from MITS
@narasimhann2814
@narasimhann2814 3 года назад
The Best Explanation for fork() and exec() I ever saw. Hats off Sir !!
@Giurigi123
@Giurigi123 2 года назад
Truee
@shaiksoofi3741
@shaiksoofi3741 4 года назад
Sir it's🔥🔥🔥🔥..U are simply awesome..Why can't we find a professor like u in colleges???🙍🙍
@aniket7512
@aniket7512 3 года назад
Cuz clg profs are paid and hence no value.😅 . I would love to pay my clg fees to NesoAcademy!😍
@Amir-tv4nn
@Amir-tv4nn 3 года назад
It's because anyone can find other simple examples and just redo them on youtube. I'm glad he is not a professor lol. did anyone understand what he did with the arguments he created and passed into execv(). lmao ignorants
@PersonofInterest23621
@PersonofInterest23621 2 года назад
@@Amir-tv4nn ah I see a triggered professor (or maybe a child of a professor). Either way, yeah we got it. He explains better than paid professors. Who are mostly slackers.
@conceptgraduation694
@conceptgraduation694 2 года назад
Same doubt
@thanioruvan4556
@thanioruvan4556 2 года назад
May be you are in a college which is in lower tier. Like in any other organizations, there are good professors employed in good tier 1 institutions as they are payed decently. As the institution level goes down, professor's skill also compromised. Better to study well, crack entrances and get in to top institutes.
@masakusapele8405
@masakusapele8405 Год назад
You are all I needed. Thank you for this insightful and well explained lesson about fork() and exec()
@adrianharo6586
@adrianharo6586 3 года назад
My favorite explanation of fork and exec calls, thank you.
@lakshminarayanans9252
@lakshminarayanans9252 5 лет назад
Because of your c programming video today I have clear the 1st round of ZOHO... Really thank you sir
@Amir-tv4nn
@Amir-tv4nn 3 года назад
did you understand why he created the array of arguments and passed them into the function? lmao
@randomguy4738
@randomguy4738 2 года назад
@@Amir-tv4nn No... Still alot more helpful tutorial than what I was searching through though...
@HelloWorldTrip
@HelloWorldTrip 4 года назад
Thank you for the explaining why PID was printed two times !
@ulfinawakjira1977
@ulfinawakjira1977 2 года назад
Thank you very much you're helping many computer science students get through college!!
@bluechacha
@bluechacha 3 года назад
Very straight and clear explanation with simple example.
@saadmanahmed860
@saadmanahmed860 4 года назад
illustration with the mint terminal was extremely helpful. thanks for such great illustration
@followying392
@followying392 3 года назад
I got this, lessons on my class created the fear on me ! Thank you !
@quratraja7391
@quratraja7391 4 года назад
Thank You! So, fork() function creates a duplicate copy of the same program with different process id. The process who calls fork() is called parent process while the newly created process with exactly same contents and different process is called child process. Whereas exec() function is called with some argument by an already existing process. It replaces the existing process with the one referenced in argument. So the whole process is replaced by another with same process id of the older process. In fork (), process id changes while in exec(), process id remains the same. Fork produces duplicate while exec replaces the program.
@xrafter
@xrafter 3 года назад
Yes fork and exec are the most used syscalls in unix . You always use them the shell always use them exec is to execute a binary file
@prantobhoumik6586
@prantobhoumik6586 3 года назад
if exec() function replace the whole content of running program then why the frist printf line execute which is written before the exec() function call
@ssc_-kn6os
@ssc_-kn6os Год назад
@@prantobhoumik6586 After exec() is called with ex2 as argument then the whole ex2 program will be replaced from that line and the process will not return back to ex1 And Before exec() whatever is written will obviously will get executed
@ardaaltntas9500
@ardaaltntas9500 Год назад
After listening my proffesor`s meaningless and not understandable 3 hour fork() and exec() lessons, this video brings me to the moon man. Totally understand in
@kawhao3757
@kawhao3757 2 года назад
you are EXPLAIN clearly than my teachers , Thanks a lot sir.
@anaruzzzzzz
@anaruzzzzzz 4 года назад
Thank you! great explanation
@saraswati558
@saraswati558 3 года назад
I can't believe I finally got this
@a-87shreyashajaychoudhary28
@a-87shreyashajaychoudhary28 3 года назад
Neso Academy is doing a great JOB!!
@sergiosierraarquero3133
@sergiosierraarquero3133 Год назад
Quite useful as usual, many thanks sir!!
@manshushivam295
@manshushivam295 3 года назад
hats off for showing thing practically ...really its redefining learning
@leeyeonseo6600
@leeyeonseo6600 Год назад
Thanks a lot, this is the best explanation of exec and fork that i found.
@kasaneshmeshesha3933
@kasaneshmeshesha3933 2 года назад
Thank you for your good and simple explanation.
@ismail8973
@ismail8973 3 года назад
Thanks sir with respect from NIT Calicut
@raffayylsamuill9164
@raffayylsamuill9164 3 месяца назад
Thank you for this great explanation.
@gufengmsa
@gufengmsa 2 года назад
very clean instruction. Thank you
@user-zq9qo3sm4q
@user-zq9qo3sm4q 3 года назад
Awesome videos! Thank you so much!
@stevanvieira3665
@stevanvieira3665 Год назад
Thanks, this explanation was very clear! 😄
@ujjwalsharma9943
@ujjwalsharma9943 4 года назад
goood job guys kudos to your content .....keep uploading informative videos
@NitinSatish
@NitinSatish 3 года назад
Thank you for the superb explanation
@ahmedabdulrazzaq2015
@ahmedabdulrazzaq2015 3 года назад
Thank you great explanation!
@dnyaneshbachhav9772
@dnyaneshbachhav9772 3 года назад
Awesome Explanation...!!!
@cherryson4625
@cherryson4625 3 года назад
The best video in the whole youtube...
@rahuljain224
@rahuljain224 4 месяца назад
Very nice explanation ❤
@ganeshtarun2421
@ganeshtarun2421 3 года назад
Excellent explanation!!!!!
@user-ul7nb8qs5x
@user-ul7nb8qs5x 7 месяцев назад
Man, You are the best!
@hafsazaman367
@hafsazaman367 4 года назад
thank u sooooo much sir.....you are the best teaher ever
@bryanshi3774
@bryanshi3774 2 года назад
super clear explanation
@sakibchonka4005
@sakibchonka4005 4 года назад
great content... hats off!!
@zainie1081
@zainie1081 3 года назад
u saved my grade man, thank you
@JasmineJas-kv4fl
@JasmineJas-kv4fl 10 месяцев назад
Thank you ur explaining everything detaily
@niranjankannan1248
@niranjankannan1248 3 года назад
Excellent explanation Thanks
@NoOne-lj3zb
@NoOne-lj3zb Год назад
All time favorite @ neso academy ❤️
@shwetakapse8510
@shwetakapse8510 3 года назад
Best explanation ...Thank u sirr👍
@saddamahmad2310
@saddamahmad2310 5 лет назад
thank you very much sir for this video
@filosofiadetalhista
@filosofiadetalhista 9 месяцев назад
You are an amazing teacher.
@soult7849
@soult7849 3 года назад
Thanks you are way better than my professor.
@venkataswamykadiyam977
@venkataswamykadiyam977 3 года назад
Excellent explanation sir
@nicolagigante980
@nicolagigante980 Месяц назад
If my college professors explained programming concepts like you do, many students would finish their degrees instead of dropping out!
@ayushiyadav1
@ayushiyadav1 Месяц назад
agree...💯
@mos3ab696
@mos3ab696 10 месяцев назад
Thanks bro, it's very awesome 🥰
@samarthtandale9121
@samarthtandale9121 Год назад
Great Video !!!
@khadija6918
@khadija6918 3 года назад
really good!
@mustafaadel8194
@mustafaadel8194 4 года назад
thanks alot bro, god bless you
@subee128
@subee128 5 месяцев назад
Thank you so much
@sefrofchan430
@sefrofchan430 5 лет назад
Thanks a lot sir!😊
@user-mw8ci2qc8x
@user-mw8ci2qc8x 3 года назад
Thank you sir. You are explaining every thing in a great way thank you very much.
@PepeBote11a
@PepeBote11a 3 года назад
amazing explanation you saved me
@ericfeng8226
@ericfeng8226 2 года назад
This is really good
@DolaLado
@DolaLado 3 года назад
Thank you.
@farahmohamed2104
@farahmohamed2104 8 месяцев назад
well explained
@ghita2003able
@ghita2003able Год назад
amazing explanation
@nicholaswoel-nogueira4074
@nicholaswoel-nogueira4074 3 года назад
what are those quotes on the cow. Lowkey love it
@binateaaghar9507
@binateaaghar9507 Год назад
thank u !!! its too much very helpful😇
@manoranjani5673
@manoranjani5673 3 года назад
woww... amazing explanation....
@Ravi_477
@Ravi_477 Год назад
What an explanation .
@sto2779
@sto2779 2 года назад
Good explanation.
@turzosaha3789
@turzosaha3789 2 года назад
very informative lecture
@dheerajpawar211
@dheerajpawar211 2 года назад
Thank you so much ❤️
@ogujohnkennedy9121
@ogujohnkennedy9121 Год назад
Awesome, thanks
@yashwanths2782
@yashwanths2782 Год назад
Thank you
@laharibasu9731
@laharibasu9731 3 года назад
Awesome practical explanation.😇❤️
@rajbhardwaj2180
@rajbhardwaj2180 2 года назад
Could u help me in numerical?
@sagar00108
@sagar00108 9 месяцев назад
@@rajbhardwaj2180 I will
@haanhtran9351
@haanhtran9351 3 года назад
thank you so much!
@malwa-ka-kisan
@malwa-ka-kisan Год назад
Very nice🙏🙏
@dharmikmistry8781
@dharmikmistry8781 4 года назад
Thank you sir 🤗🤗🤗
@amanchaudhary8817
@amanchaudhary8817 Год назад
Great sir 👏
@saadmanahmed860
@saadmanahmed860 4 года назад
dear neso academy u just explained it so nicely
@mohammedkhalid1648
@mohammedkhalid1648 3 месяца назад
I got full mark in the quiz cuz of you TYSM
@domulko44
@domulko44 3 года назад
thanks it helped
@feiseyouto
@feiseyouto 2 года назад
What a hero
@ayushiyadav1
@ayushiyadav1 Месяц назад
19:46 yesss, clear. 😊❤
@anonymous.reddy0
@anonymous.reddy0 Год назад
Thnaks
@narendraparmar1631
@narendraparmar1631 4 года назад
thanks sir
@That_EvilGuy
@That_EvilGuy Год назад
Dam longer video then expected but it's better explained than expected XD
@Giurigi123
@Giurigi123 2 года назад
Very ueeful
@maan9626
@maan9626 4 года назад
now I understand that shit after wasted 1 hr of my life. thanks bro
@dhanushsivajaya1356
@dhanushsivajaya1356 3 года назад
Thankyou sir
@ShubhamHarikrishna
@ShubhamHarikrishna 10 месяцев назад
nice video
@devtoro5601
@devtoro5601 2 года назад
ThankS!
@ahsanrashid4430
@ahsanrashid4430 3 года назад
forking hell, all clear now ... Thanks
@ifthikarali6741
@ifthikarali6741 2 года назад
good one
@asimkhan6993
@asimkhan6993 4 года назад
great explanation ...thank you sir
@nishitpandit7620
@nishitpandit7620 3 года назад
Great explanation as always although I couldn't understand why during the multiple forking example you explained, the 2nd last output statement included the terminal header('jaison@neso-acdemy.....')?
@harryporter3116
@harryporter3116 Год назад
This is very late, but in case anyone is still wondering my assumption is that the initial process returned before all children finished, since they're all executing concurrently. So the shell prints the next prompt whilst a few child processes are still executing. You'll see some of the prints are out of order for a similar reason. I could be wrong though, so if anyone knows better please feel free to correct me.
@ashokmahajan6062
@ashokmahajan6062 2 года назад
Can you please explain why the first program using fork() won't go into infinite loop ?
@haowenwei3256
@haowenwei3256 3 года назад
Sooooooooooooooooooooooooooooooo goooooooooooooooooooooood!
@sunghyunpark2055
@sunghyunpark2055 3 года назад
This beats my 2 hours of a college course on the same topic. LoL
@Shivam-kz2dg
@Shivam-kz2dg 10 месяцев назад
6:10 if you are using windows terminal , use ./a.exe
@smrititilak
@smrititilak 3 года назад
What was the purpose of passing the args array to exec?
@kyubae8351
@kyubae8351 2 года назад
You pass an vector environment that the new process can use. For example when the first process makes a calculation that you need the result of in the other process, you just pass the result inside that vector environment
@jagadeeshmoulijyothula933
@jagadeeshmoulijyothula933 Год назад
Sir i think 8times the execution of system calls takesplace sir(fork)....loved ur teaching sir
@abhishek_singh512
@abhishek_singh512 Год назад
In 3 fork() system call why after 6 times prints then enter press automatically and the 2 times prints
@suryar3173
@suryar3173 Год назад
In exec, Which system call is used in second program to get back to the first program?
@shrirambharadwaj617
@shrirambharadwaj617 3 года назад
super
Далее
Threading Issues [fork() & exec() System Calls]
10:01
Просмотров 124 тыс.
System Calls
12:39
Просмотров 738 тыс.
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Просмотров 1,5 млн
How to execute another program in C (using exec)
14:23
Просмотров 102 тыс.
Calling fork multiple times
13:58
Просмотров 106 тыс.
Linux fork() Introduction
29:40
Просмотров 247 тыс.
Context Switch
10:34
Просмотров 333 тыс.
Understanding Fork Bombs in 5 Minutes or Less
5:55
Просмотров 167 тыс.
Multithreading Models & Hyperthreading
17:57
Просмотров 269 тыс.
Using execve in C
10:04
Просмотров 16 тыс.