The Kernel allocates time and memory response and handles the filestore and communications for any system response.
The shell acts as a interface between the user and the kernel.
For example consider the following example to understand how a kernel and shell works:When an user types a command to remove a file (rm myfile)… the shell searches the file store to locate that file containing the program rm, and then sends the request to kernel to execute the program rm on myfile. When the process rm myfile is complete the shell then returns % prompt (unix prompt) to the user.
Here is another example:
When you log in to the system the Kernel checks if your Login and password is correct and then runs a shell Program for you to interact with it. The shell is a program that the kernel runs for each user which sets commands for execution. It can have several shells and one kernel By having the kernel in control, it is also possible for one user to run several shells. The kernel remains in control of all shells and programs
No comments:
Post a Comment