Тёмный

System Calls 

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

Operating System: System Calls
Topics discussed:
1. System Calls.
2. User mode.
3. Kernel mode.
4. Examples of System Calls.
Follow Neso Academy on Instagram: @nesoacademy
Contribute: www.nesoacademy...
Memberships: bit.ly/2U7YSPI
Books: www.nesoacademy...
Website ► www.nesoacademy...
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#OperatingSystemByNeso #os #OperatingSystem #SystemCalls

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

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 206   
@mrbrian826
@mrbrian826 4 года назад
Very happy to find an explanation in English that is easy to understand. Many thanks from Ireland 🤝
@bradleytimm5349
@bradleytimm5349 2 года назад
I'm pretty sure 10% of India's GDP consists of English Language CS related tutorial videos.
@hhcdghjjgsdrt235
@hhcdghjjgsdrt235 2 года назад
@@bradleytimm5349 rest 90% of gdp consist of the salary of Indian software engineers who can speak English.
@vikassaini7485
@vikassaini7485 Год назад
@@hhcdghjjgsdrt235 😂😂
@munisasidhar4897
@munisasidhar4897 2 месяца назад
Yes
@narendrachintala7998
@narendrachintala7998 5 лет назад
Switching from kernel to user and vice versa is known as mode shifting not context switch. Context switch is the one which happens between 2 processes.
@srinivaspokala333
@srinivaspokala333 4 года назад
Correct
@mehulkumar3469
@mehulkumar3469 4 года назад
Right
@tusharparashar1879
@tusharparashar1879 3 года назад
Yups that's why I was confused when he said context switching
@AdithyaKahawanugoda
@AdithyaKahawanugoda 3 года назад
true
@hetaeramancer
@hetaeramancer 3 года назад
Can you guys give an example of a context switch?
@jawadashraf3181
@jawadashraf3181 5 лет назад
Dear, transfer from user mode to kernal mode is not context switching. please correct it in video. Context switching involves processes only.
@nuthankumar6138
@nuthankumar6138 3 года назад
agree
@trishna1051
@trishna1051 5 лет назад
Thank u very much.. Really it's very easy to understand after watching ur Vedios.. It helps me a lot...
@MrKristian252
@MrKristian252 3 года назад
for [name of some hardware], you need a [big pause] *system call* This is now burned into my brain, thank you so much for this explanation surrounding the topic!
@bhoopendrafagna8535
@bhoopendrafagna8535 3 года назад
very easy way of explaining thanks a lot sir
@klaik30
@klaik30 2 года назад
It is first explained that if a program is in kernel mode and crashes, the whole system crashes. Then it is defined that a mode shift happens in an instant when a system call is made. Then finaly it is shown that almost EVERYTHING is a system call. Just getting input and showing it on the screen are system calls. The thing is that obviously your whole system would not crash if something in that program crashes even though every action is a system call. How can that be?
@majki5900
@majki5900 4 года назад
awesome explanation, that was very helpfull :) !
@narendrarudra3543
@narendrarudra3543 5 лет назад
THANK YOU
@Bb-307
@Bb-307 6 лет назад
Amazing.. great teacher
@bhagirathsinhmakwana6085
@bhagirathsinhmakwana6085 3 года назад
Sir if an user mode switch to the kernel mode then there is chances of system crashes . Then why there is context switching?????
@surajgahatraj3233
@surajgahatraj3233 6 лет назад
perfect explaination!
@sreepriyanks
@sreepriyanks 5 лет назад
well explained...thank u
@sugatasaha4423
@sugatasaha4423 3 года назад
great explanation.
@varunsood7899
@varunsood7899 2 года назад
Nice lectures 👍👍 sir you are clearing all my doubts
@sona854
@sona854 6 лет назад
very nice explain
@be_55_atharvsankpal38
@be_55_atharvsankpal38 5 лет назад
In short change of mode is called system call Correct me if i am wrong
@developer9172
@developer9172 5 лет назад
is it ture??
@be_55_atharvsankpal38
@be_55_atharvsankpal38 5 лет назад
@@developer9172 os does not get access to various files so it enters in Kernel Mode (km) has full access the change of mode is called Kernel mode
@developer9172
@developer9172 5 лет назад
@@be_55_atharvsankpal38 Yeah right
@developer9172
@developer9172 5 лет назад
@@be_55_atharvsankpal38 Thnx alottt for thz
@serawang8830
@serawang8830 6 лет назад
I am confused about why there is a system call for "Acquire input filename". I think "Write prompt" and "accept input" is just acquiring the input filename. Can anyone explain? thx!
@developer9172
@developer9172 5 лет назад
I dont undrstand Your Question Can You Explain me??
@j.hendrix3989
@j.hendrix3989 5 лет назад
I have the same question
@vikyathvicky3886
@vikyathvicky3886 5 лет назад
because for acquiring a file name,we need to write it through keyboard(which means device access or hardware access)...so you need to request this service of accessing hardware devices from kernel of the os
@varun300690
@varun300690 4 года назад
I too could not understand this. Has there been any resolution, if you understand it now, then please share your insight.
@qm9356
@qm9356 Год назад
Umm it is difficult to understand that how to create an input or output file or copying data 😢
@Mangospicetar
@Mangospicetar 3 месяца назад
wow❤
@samiashah6044
@samiashah6044 6 лет назад
I want to left vedo on operating system. Plz give these ling
@robot67799
@robot67799 2 года назад
wow never thought copying a file could be that long....computer's are so fast😬
@SS-uf1yw
@SS-uf1yw 6 лет назад
plz make more more vdos
@ishaanwadhwa3985
@ishaanwadhwa3985 5 лет назад
HEAVY
@mohammedahsan4940
@mohammedahsan4940 4 года назад
Gkp
@aumthakkar9793
@aumthakkar9793 2 года назад
😃😀
@rafaelruales6871
@rafaelruales6871 6 лет назад
too redundant
@Hero360-k1e
@Hero360-k1e 5 месяцев назад
I watch this video for 2 hours, I can't focus😢😢😢
@hoangminhchau2187
@hoangminhchau2187 Год назад
There are 2 modes of execution for a program: 1) User mode: - Do not have access to resources like memory or hardwares - When a program crashes, the entire system will not break down 2) Kernel mode: - Privilidged mode - Have access to resources - When a program crashes, the entire system breaks down Because user mode is safer, most programs run in user mode. But some programs might need access to resources, so they will make a call to the OS to request for these. This call is system call. When the OS receives the system call, it will change the mode of the program to kernel mode. This is called context switching.
@Madhavi_1177
@Madhavi_1177 Год назад
🎉
@jeanxza5395
@jeanxza5395 Год назад
Called mode shifting not context switching he made a mkstake
@inishkohli273
@inishkohli273 6 месяцев назад
"Because user mode is safer, most programs run in user mode".. It maybe better to say , most program are REQUIRED to run in user(restricted mode) by the parent of the computer(OS) because this kid from neighbor house(programs created by third party developer) can break and crash things(crash system) when they come to play in our house(run in our OS) , they can steal things(privacy issues from external programs) .. However our own kid( OS system default apps or programs like Ms Word, ... has loose to no restriction) because we gave birth to our kid, we can easily correct their behavior....(fix bug of system apps) ...>....Sorry but my analogy is weird.🤣
@Subhasini_Sethi
@Subhasini_Sethi 6 месяцев назад
​@@inishkohli273😂😂😂😂
@mathy642
@mathy642 4 месяца назад
@@jeanxza5395It can be mode switching/context switching
@bekacynthia
@bekacynthia 4 года назад
The first three and a half minutes of your explanation helped me understand something I was reading and reading but was not grasping it entirely. Thank you for the lesson.
@raviiMaurya
@raviiMaurya 2 года назад
same
@Mr_Memer01_
@Mr_Memer01_ Год назад
Exactly 💯
@fakeskillerog9979
@fakeskillerog9979 Год назад
Absolutely 💯
@TechnoyashBro
@TechnoyashBro 3 года назад
🥳 Tqsm sir from india 🇮🇳
@Mehraj_IITKGP
@Mehraj_IITKGP Год назад
What I learnt from the lecture: User mode and kernel mode refer to two different modes of operation for a computer's processor and operating system. User mode is the mode in which user applications and programs operate. In user mode, the processor can access only a limited set of resources and instructions, which are defined by the operating system. This includes memory, input/output devices, and CPU registers. User-mode applications do not have direct access to the system's hardware or kernel memory, and any attempt to access such resources will result in an error. On the other hand, Kernel mode is a privileged mode in which the kernel operates. In kernel mode, the processor has access to all system resources, including hardware devices and kernel memory. This allows the operating system to perform low-level operations and interact with hardware devices directly. System-level processes, such as device drivers and system services, operate in kernel mode. A system call is a call made by a program to OS in order to access certain resources which are not accessible in the user mode. So in brief, we can say that a system call is special call made by a program to switch from user mode to kernel mode in order to access certain resources. This is known as mode-shifting, not context switching as the instructor mistakenly called it context switching. The term "context switching" usually refers to the process of saving and restoring the context (i.e., state) of a process or thread so that it can be temporarily suspended and later resumed by the operating system. The term "mode switching" or "mode transition" may be more appropriate to describe the process of switching from user mode to kernel mode and back again. When a user-mode program makes a system call to the operating system, the following steps occur: 1. The user-mode program issues a system call request, typically through a library function provided by the operating system or through an interrupt instruction. 2. The processor switches from user mode to kernel mode, which involves saving the current state of the user-mode program, including its register values and program counter, onto the kernel stack. 3. The operating system identifies the requested operation, validates the arguments passed by the user-mode program, and executes the operation on behalf of the user-mode program. This may involve allocating or releasing resources, modifying data structures, or performing I/O operations. 4. Once the operation is completed, the operating system saves the results of the operation, restores the saved context of the user-mode program from the kernel stack, and switches back to user mode. 5. The user-mode program resumes execution at the point where the system call was made, and the results of the system call are made available to the program.
@Ahnos
@Ahnos 10 месяцев назад
Thanks for the notes
@codextreme7756
@codextreme7756 5 лет назад
Switching from user mode to kernel mode is not a context switch it just a mode switch. When making a system call there is no context switch because you are in the same address space using the same page table.
@saadmanahmed860
@saadmanahmed860 4 года назад
thanks to u for correcting the concept
@mrkiwiboy2011
@mrkiwiboy2011 5 лет назад
Hi, do you mean operating system needs system call to write completion message to screen? I am pretty sure user has nothing to do with it so please explain why you say "you" in this video all the time instead of Operating system!
@HamzaShahzadEB_
@HamzaShahzadEB_ Год назад
You guys are doing such a great work but I'm extremely disappointed that after certain chapters you asked for fuel ⛽. We are completely dependant to your video but you made us to pay you🥺🥺. We already pay in uni college school but that's not worthy enough but we don't have Choice. Please make everything free. You guys can also earn through views your videos are worth watching.
@chaturadh
@chaturadh 6 лет назад
Your explanation is really good. Could you please make a video about fork(),exec() and wait() function, it is really hard to understand Thank you
@trilecao9014
@trilecao9014 3 года назад
Thanks! 1. User mode: safer 2. Kernel mode: more privilege
@انميانمي-ن7ن
@انميانمي-ن7ن 2 года назад
Why do we switch from the user's stack to a kernel stack when we enter the kernel ( e.g. for a system call ) ? @Neso Academy
@noviljohnsonnovil1676
@noviljohnsonnovil1676 5 лет назад
u've got really great patience. n thanks a lot.
@mohsinabdulrauf9145
@mohsinabdulrauf9145 2 года назад
there is little bit mistake except of switching terminology you can say there is trap generated in a program goto kernel mode from user mode as it is taught me by my class teacher thanks else everything you guide right sir thanks!
@sheetalyadav4483
@sheetalyadav4483 3 года назад
Thank you sir ! I'm grateful that you're my teacher
@siddhu-46
@siddhu-46 3 года назад
Nice explaination Awesome. But switching from user mode to kernal mode is Known as Mode shifting based on PSW(program status word) mode bit it changes to user mode to kernal mode ??
@f2pethereum67
@f2pethereum67 3 года назад
Haha thanka alot sir my teacher teaches everything from your automata lectures but you explain better and today your example was the answer to my os assignment thanku sir really appreciated ❤️
@MMX17
@MMX17 3 года назад
It kind of sounds like a system call is just a method called by the OS. Like in C++ a cout statement is used to display something to the screen, but in your explanation you mention a system call is used to make that happen.
@saadmanahmed860
@saadmanahmed860 4 года назад
good illustrations
@AS-ne5wu
@AS-ne5wu 7 месяцев назад
Had to rewatch this several times since it's a difficult topic for beginners, but understood everything in the end. Amazing how just one video gives so much info.
@章魚-l8y
@章魚-l8y 2 года назад
good explaination! However, seems all action that perform in the copying procedure are system calls (need to switch to kernal mode). Is there any example of user mode action?
@pieetro_o
@pieetro_o 4 года назад
System Call. Generate Thermal Element. Form Element. Arrow Shape. Fly Straight. Discharge.
@oshadhaedirisinghe1455
@oshadhaedirisinghe1455 7 месяцев назад
Thank you
@mazharkhaliq1971
@mazharkhaliq1971 2 года назад
With the level of knowledge you always amaze me 😊, thanks for the video
@munteanionut3993
@munteanionut3993 4 месяца назад
Thank you for the video! 05:20 is a bit misleading. You first mention we initially get the file name through the "Acquire Input Filename" step, but then you also mention "Then you are displaying a prompt to the screen, asking the user to enter the name of the input file". Didn't we already do step 2 at step 1? Or is this just a terminology issue and what you actually meant with the first step is that: we get the memory required to store the input first AND AFTERWARDS we get the literal input..?
@Unxon-g1l
@Unxon-g1l 8 месяцев назад
bohut bhadiya videos bna rhe ho thank you sir
@soufianta8374
@soufianta8374 2 месяца назад
I thought that a process can access its own virtual address space without “mode shifting” and hence, no system call required or do I’m wrong ??
@YashDEVELOPER12
@YashDEVELOPER12 2 года назад
You are a great teacher sir.. God bless you always and thanks alot from bottom of my heart❤
@patricechaula3430
@patricechaula3430 3 года назад
I have always to stick to reading books and avoid youtube videos. Thanks for the tutorial, you explain it very well.
@dhanarsantika
@dhanarsantika 6 лет назад
Nice explaination, you made it simple
@paulinov.rodriguesmuebe6744
@paulinov.rodriguesmuebe6744 5 лет назад
Nice explanation. Huggs from Mozambique
@nooratal3739
@nooratal3739 Год назад
👍👍👍
@coding_unicorn2
@coding_unicorn2 Год назад
Your explanation is so easy to understand the topics which appears difficult 😊❤
@agamgill9563
@agamgill9563 6 лет назад
great job....thank u so much sr..
@abhinayreddy5499
@abhinayreddy5499 6 лет назад
Tqs alot sir...i like ur videos...and it helped me alot...but our exams r starting on april 16th...so plz upload bit faster...
@YashDEVELOPER12
@YashDEVELOPER12 2 года назад
Sir I have a doubt , before creating output file. Why not I can check , if the output file exist in the memory .. why we are creating output file without checking.. plz clear this doubt!
@basitobaid6903
@basitobaid6903 4 года назад
Good explanation brother but you said program shifts from user mode to kernel mode but it's actually a process that shifts (As the running program is called the process ) so you better correct it!
@hotfirefly
@hotfirefly 2 года назад
Damn sys call for each and every step
@firepup9924
@firepup9924 4 года назад
Can anybody give an example of something which is not considered a system call? Seems like every task is a system call
@quratraja7391
@quratraja7391 4 года назад
Great job Tutorial explains about system calls. System call is the call made by a program running in user mode to the kernel of the operating system to switch the program from user to the kernel mode so that it can access required resources. An example of copying contents from one source file to a destination file is given. This small task involves lots of system calls.
@chintupatelyt2668
@chintupatelyt2668 3 года назад
Awesome sir Keep Go’ing
@jamal8916
@jamal8916 11 месяцев назад
You have explained this complex topic in the most amazingly simple manner, excellent teacher kind sir!
@senthilvadivuk4633
@senthilvadivuk4633 Год назад
System calls are not created by user program.. they are already available with os
@zyanchuah
@zyanchuah 5 лет назад
system call generate luminous element nvm
@ripunjoysahariah9634
@ripunjoysahariah9634 4 года назад
sao
@andreborges8640
@andreborges8640 Год назад
don't you need to close the input file?
@koketsobakwenamathole7773
@koketsobakwenamathole7773 2 месяца назад
Any University of Johannesburg students here?
@VASAVILATHACSE2022VelTechChenn
@VASAVILATHACSE2022VelTechChenn 7 месяцев назад
There are 2 modes... 1.user mode-mode bit 1 2 .kernel mode-mode bit 0 User mode: It doesn't contain any resourses. It's mode bit is 1 If the program crashes entire system is not collapsed.hence,it's safe mode to use Kernel is priviliged mode Bit mode is 0 If program crashes whole sys collapses So not safe,recommended to use
@ishajaswal7547
@ishajaswal7547 Год назад
Very well explained
@praneshacharya6115
@praneshacharya6115 3 года назад
what does happen if crash occur during mode switching?
@khaliidcaliy1056
@khaliidcaliy1056 5 месяцев назад
User mode and kernel mode is cpu execution mode so, Context switching is can be triggered by alot of things such as interrupt handling in that case context switch may occur for example if there were process of iowaiting state then disk controller will trigger interrupt send to cpu and interrupt handler invoked causing context switching. Context switch is not only for kernel user mode
@sona854
@sona854 6 лет назад
very nice explain
@raffazaver
@raffazaver 4 месяца назад
you repeated 10 times the same thing !!! thank you for losing my time, wanted to learn about system calls got told about kernel mode
@raj5999
@raj5999 4 года назад
I made a file named File1 And Changed permissions to 444 Still i can delete this file, why so? What's 444 doing
@dev.rahulgurjar
@dev.rahulgurjar Год назад
Google it???
@nrgs-alh
@nrgs-alh 10 месяцев назад
Hi thanks for your amazing explanation, i have a question. It means that for all the commands and operations which are in user mode, the system call is being used? And is it related to the CPU? I mean if this happens, it takes so much time from the cpu to do these system calls.
@vasilispanagiotopoulos1364
@vasilispanagiotopoulos1364 6 лет назад
Comic Sans. Dem memes.
@Dragonborn-dc4uj
@Dragonborn-dc4uj 5 лет назад
It can also take control of someone and make a army and make you a god basically
@لانالانابنتحسن
Why you said you you instead of saying operating system I wan to know why properly my imagination wrong 😢 ????
@c.a.whodat
@c.a.whodat 5 лет назад
Weird Sword Art Online episode but ok
@desihaxor5690
@desihaxor5690 4 года назад
Weebs everywhere
@humairaahmadi4759
@humairaahmadi4759 3 года назад
very clear and simple explaination .thanks alot sir for this all sach a efficiency that u have provide for us to learn it in great way. lots of love from afghanistan .❤🌻🌷🌺
@atharislam282
@atharislam282 5 лет назад
i have done my lecture bcoz of u'r help
@dinushachathuranga7657
@dinushachathuranga7657 Год назад
Thanks a lot for the nice explanation❤
@thareejanp3933
@thareejanp3933 Год назад
Switching User mode to kernel mode called as System Call Interfaces (SCI) Not context switching by the time, context switching will happen while switching to another process
@r4isen2019
@r4isen2019 5 лет назад
Anyone from Sword Art Online?
@godenk1185
@godenk1185 5 лет назад
SYSTEM CALL GENERATE LUMINOUS ELEMENT
@BrigadoomNorth
@BrigadoomNorth 5 лет назад
System Call: Remove Core Protection.
@nicolasguzman7383
@nicolasguzman7383 5 лет назад
Shisutemu Kōru: Jenerēto sāmaru eremento 👹
@linoymiz22
@linoymiz22 5 лет назад
thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@kdz9581
@kdz9581 3 года назад
For you to be able to watch this video, process it and learn from it you need a...? System Call
@MN-lz6lf
@MN-lz6lf 5 лет назад
سبحان الله و بحمده . . ♥️ سبحان الله العظيم . . . 💙
@mohsinabdulrauf9145
@mohsinabdulrauf9145 2 года назад
Yours course was very helpful to me sir i am grateful to you
@ekc133
@ekc133 2 года назад
System Call Interfaces (SCI) are the only way to transit from User space to kernel space.Not context switching
@user-em9mw9ch3y
@user-em9mw9ch3y 6 лет назад
how is 'acquire input file name' ahead of 'print prompt to screen' ? And shouldn't the presence of one mean the absence of the other ?
@utsargapokharel8709
@utsargapokharel8709 6 лет назад
you are doing too much investigation L .
@user-em9mw9ch3y
@user-em9mw9ch3y 6 лет назад
Utsarga Pokharel Am I Nepalese bro ?
@vijaysharma-nn9th
@vijaysharma-nn9th 6 лет назад
wonderful explanation
@atharislam282
@atharislam282 5 лет назад
thanku..
@Wickykhan
@Wickykhan 6 лет назад
thank u sooooooo much
@kallipalliashokkumar8114
@kallipalliashokkumar8114 3 года назад
Explanation is very well
Далее
Types of System Calls
11:23
Просмотров 416 тыс.
fork() and exec() System Calls
20:34
Просмотров 419 тыс.
Witch changes monster hair color 👻🤣 #shorts
00:51
User Operating System Interface
13:34
Просмотров 292 тыс.
Structures of Operating System
19:27
Просмотров 622 тыс.
How does Bluetooth Work?
21:35
Просмотров 9 млн
Virtual Machines
11:23
Просмотров 283 тыс.
Semaphores
22:51
Просмотров 471 тыс.
Introduction to Operating Systems
16:45
Просмотров 2,9 млн
How many kernel system calls do runtimes make?
19:18
Просмотров 21 тыс.