0% found this document useful (0 votes)
42 views1 page

Exec Call Overlays A New Process Based On A Different Executable Over The Calling Process

System calls allow user processes to request services from the operating system. The five major process management activities of an operating system are process creation and deletion, suspension and resumption, synchronization, communication, and deadlock handling. In Unix, starting a new process requires a fork system call followed by an exec system call. The layered approach to system design has advantages like modularity, easier debugging and modification, and restricted information access; disadvantages include potential performance impacts.

Uploaded by

Kevin Ndemo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views1 page

Exec Call Overlays A New Process Based On A Different Executable Over The Calling Process

System calls allow user processes to request services from the operating system. The five major process management activities of an operating system are process creation and deletion, suspension and resumption, synchronization, communication, and deadlock handling. In Unix, starting a new process requires a fork system call followed by an exec system call. The layered approach to system design has advantages like modularity, easier debugging and modification, and restricted information access; disadvantages include potential performance impacts.

Uploaded by

Kevin Ndemo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

2.1 What is the purpose of system calls?

Answer: System calls allow user-level processes to request services of the operating system.
2.2 What are the five major activities of an operating system with regard to process
management?
Answer:
a. The creation and deletion of both user and system processes
b. The suspension and resumption of processes
c. The provision of mechanisms for process synchronization
d. The provision of mechanisms for process communication
e. The provision of mechanisms for deadlock handling
2.6 What system calls have to be executed by a command interpreter or shell in order to
start a new process?
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.
2.8 What is the main advantage of the layered approach to system design? What are the
disadvantages of the layered approach?
Answer: As in all cases of modular design, designing an operating system in a modular way has
several advantages. The system is easier to debug and modify because changes affect only
limited sections of the system rather than touching all sections of the operating system.
Information is kept only where it is needed and is accessible only within a defined and restricted
area, so any bugs affecting that data must be limited to a specific module or layer.
3.1 Using the program shown in Figure 3.30 explain what the output will be at LINE
Answer: The result is still 5 as the child updates its copy of value. When control returns to the
parent, its value remains at 5.
3.2 Including the initial parent process, how many processes are created by the program
shown in Figure 3.31?
Answer: There are 8 processes created.
3.3 Original versions of Apples mobile iOS operating system provided no means of
concurrent processing. Discuss three major complications that concurrent processing adds
to an operating system.
Answer: FILL

You might also like