answersLogoWhite

0


Best Answer

In Unix systems, a fork system call followed by an exec system
call need to be performed to start a new process. The fork call clones the
currently executing process, while the exec call overlays a new process
based on a different executable over the calling process.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What system calls have to be executed by a command interpreter or shell in order to start a new process?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Performing Arts

What is a command interpreter and why is it separate from the kernel?

A command interpreter is an interface of the operating system with the user. The user gives commands with are executed by operating system (usually by turning them into system calls). The main function of a command interpreter is to get and execute the next user specified command. Command-Interpreter is usually not part of the kernel, since multiple command interpreters (shell, in UNIX terminology) may be support by an operating system, and they do not really need to run in kernel mode. There are two main advantages to separating the command interpreter from the kernel. 1. If we want to change the way the command interpreter looks, i.e., I want to change the interface of command interpreter, I am able to do that if the command interpreter is separate from the kernel. I cannot change the code of the kernel so I cannot modify the interface. 2. If the command interpreter is a part of the kernel it is possible for a malicious process to gain access to certain part of the kernel that it showed not have to avoid this ugly scenario it is advantageous to have the command interpreter separate from kernel


Why is command interpreter not a part of operating system?

It is usually not part of the kernel since the command interpreter is subject to changes.


Would it be possible for the user to develop a new command interpreter using system call interface provided by the operating system?

It reads commands from the user or from a file of commands and executes them, usually by turning them into one or more system calls. It is usually not part of the kernel since the command interpreter is subject to changes. An user should be able to develop a new command interpreter using the system-call interface provided by the operating system. The command interpreter allows an user to create and manage processes and also determine ways by which they communicate (such as through pipes and files). As all of this functionality could be accessed by an user-level program using the system calls, so it should be possible for the user to develop a new command-line interpreter.


Would it be possible for the user to develop a new command interpreter using the system call interface provided by the operating system?

It reads commands from the user or from a file of commands and executes them, usually by turning them into one or more system calls. It is usually not part of the kernel since the command interpreter is subject to changes. An user should be able to develop a new command interpreter using the system-call interface provided by the operating system. The command interpreter allows an user to create and manage processes and also determine ways by which they communicate (such as through pipes and files). As all of this functionality could be accessed by an user-level program using the system calls, so it should be possible for the user to develop a new command-line interpreter.


What is the purpose of the command interpreter?

It reads commands from the user or from a file of commands and executes them, usually by turning them into one or more system calls. It is usually not part of the kernel since the command interpreter is subject to changes.

Related questions

What system calls have to executed by a command interpreter or shell in order to start a new process?

The fork system call is used to create new child process which followed his parent process


What is a command interpreter and why is it separate from the kernel?

A command interpreter is an interface of the operating system with the user. The user gives commands with are executed by operating system (usually by turning them into system calls). The main function of a command interpreter is to get and execute the next user specified command. Command-Interpreter is usually not part of the kernel, since multiple command interpreters (shell, in UNIX terminology) may be support by an operating system, and they do not really need to run in kernel mode. There are two main advantages to separating the command interpreter from the kernel. 1. If we want to change the way the command interpreter looks, i.e., I want to change the interface of command interpreter, I am able to do that if the command interpreter is separate from the kernel. I cannot change the code of the kernel so I cannot modify the interface. 2. If the command interpreter is a part of the kernel it is possible for a malicious process to gain access to certain part of the kernel that it showed not have to avoid this ugly scenario it is advantageous to have the command interpreter separate from kernel


Why is command interpreter not a part of operating system?

It is usually not part of the kernel since the command interpreter is subject to changes.


What is command interpreter?

A command interpreter is a program that converts the human written commands into the machine understandable language through the i/o devices. It is with the help of this interpreter we can actually communicate with the operating systems. A command interpreter is a separate program but can be referred as a component of an operating system.


What is shell in dos in opereating system?

It is the command interpreter: command.com


5 What is the purpose of the command interpreter?

A command interpreter reads instructions from the user or from a file of instructions and executes them by converting them into one or more system calls.


What is the difference between internal and external command?

Internal commands are the commands that are executed <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> directly by the shell. These commands will not have a separate process running for each. External commands are the commands that are executed by the kernal. These commands will have a process id running for it. Internal commands are stored in the cmd.exe command interpreter, ex. Dir External commands correspond to a .com or .cmd file, ex.


What is default operating system shell in ms-dos?

It is the command interpreter: command.com


Would it be possible for the user to develop a new command interpreter using the system call interface provided by the operating system?

It reads commands from the user or from a file of commands and executes them, usually by turning them into one or more system calls. It is usually not part of the kernel since the command interpreter is subject to changes. An user should be able to develop a new command interpreter using the system-call interface provided by the operating system. The command interpreter allows an user to create and manage processes and also determine ways by which they communicate (such as through pipes and files). As all of this functionality could be accessed by an user-level program using the system calls, so it should be possible for the user to develop a new command-line interpreter.


Would it be possible for the user to develop a new command interpreter using system call interface provided by the operating system?

It reads commands from the user or from a file of commands and executes them, usually by turning them into one or more system calls. It is usually not part of the kernel since the command interpreter is subject to changes. An user should be able to develop a new command interpreter using the system-call interface provided by the operating system. The command interpreter allows an user to create and manage processes and also determine ways by which they communicate (such as through pipes and files). As all of this functionality could be accessed by an user-level program using the system calls, so it should be possible for the user to develop a new command-line interpreter.


What is the purpose command interpreter?

It reads commands from the user or from a file of commands and executes them, usually by turning them into one or more system calls. It is usually not part of the kernel since the command interpreter is subject to changes.


What is the purpose of the command interpreter?

It reads commands from the user or from a file of commands and executes them, usually by turning them into one or more system calls. It is usually not part of the kernel since the command interpreter is subject to changes.