ipl-logo

Nt1330 Final Exam Paper

830 Words4 Pages

11. What are the states that a process can be in?
Answer: A process is the function where a series of different states being carried.
New State: It is the state where a process is being created.
Running State: It is state where process is said to be running if task is running at moment by following instructions.
Waiting State: It is a state where process is said to be in a waiting state when some event to occur at that time .
Ready State: It is a state where process is said to be ready if it is ready to perform operation..
Terminated state: It is a state where process has finished execution. 12. What system call creates and runs a new process in the UNIX and Linux systems?
Answer: Fork() system call is the one which is creates …show more content…

The context of a process is represented the process control block. And Switching the CPU to another process requires that performing a state save of the current process and a state restore of different process. This task is known as context switch. When context switch occurs the kernel must be saves the context of the old process in its PCB and loads the saves context of the new process scheduled to run. 14. What are the two general approaches operating system take to allow processes to communicate with each other (to allow inter process communication or IPC)?
Answer: The shared memory system and message passing are the two general Operating system that take to allow processes to communicate with each other. 15. Name the two types of pipes an operating system can offer for IPC. How do they differ?
Answer: The two types of pipes an operating system can offer for IPC are: naoperating by receiving or giving at once by performing it self.
Cooperating Processes are those that can receive and taking at same time
Cooperating processes require some type of inter-process communication, which is most commonly one of two types: Shared Memory systems or Message Passing systems. 16. Name the four components of a

More about Nt1330 Final Exam Paper

Open Document