For multithreaded system, the mechanism for fork and exec system call changed. When a thread calls fork(), it can duplicate that single thread or all the threads of its process. When the thread call fork and then call exec immediately after, we should duplicate only that thread because all the threads will be replaced. When the thread call fork without having the exec call after, all the threads should be duplicated
Sir some points has been miss out! Eg- multicore programming and threads libraries. I really love your content and series of lectures. Thank you Neso Academy
Doubt: Whether every thread or single thread got forked, it will not be a matter since EXEC() will replace the entire process according to the definition of EXEC() command.
See if you call Fork() then all the thread will get duplicated ,once every thread get duplicated we call exec() then as it find the threads as argument it will jump to the other with same process id.
Sir, if we want the contents of the process at a later stage we need to duplicate all threads, if we fork() a single thread then exec() gets executed then we may lose the contents of the process( which we are ought to duplicate so as to store them) pls explain
Hats off to you man you're saving a lot of college students with your videos!
For multithreaded system, the mechanism for fork and exec system call changed.
When a thread calls fork(), it can duplicate that single thread or all the threads of its process.
When the thread call fork and then call exec immediately after, we should duplicate only that thread because all the threads will be replaced.
When the thread call fork without having the exec call after, all the threads should be duplicated
Please do the videos on signal handling and implicit threading as early as possible
Ur videos are very helpful to us
Sir plz upload all the videos as early as possible your videos really help us a lot in understanding the concept in detail
Sir some points has been miss out!
Eg- multicore programming and threads libraries.
I really love your content and series of lectures.
Thank you Neso Academy
Sir please upload further videos.So that we can have before GATE 2020
Doubt: Whether every thread or single thread got forked, it will not be a matter since EXEC() will replace the entire process according to the definition of EXEC() command.
Yes it will replace the process along with all of it's threads.
yeah exactly
See if you call Fork() then all the thread will get duplicated ,once every thread get duplicated we call exec() then as it find the threads as argument it will jump to the other with same process id.
Great class! Thanks!
Well explained
Thankyou sir
Sir, if we want the contents of the process at a later stage we need to duplicate all threads, if we fork() a single thread then exec() gets executed then we may lose the contents of the process( which we are ought to duplicate so as to store them) pls explain
well elaborated
Why can't fork() duplicate only a single thread in both cases? What is the benefit of duplicating all threads?
How can we know whether exec() is called immedieatly after forking or not??
thnx a lot
Sir, what is the font style you have used ?
Two versions of fork()? What about linux?
thankuuu... so much for such nice videos .🤩
amazing
great content
Good explanation but i couldn't help but think that there is no need to spell E X E C.
Padhai pe dhyan laga le.
VTU IS THE WORST 👎
Thanks sir